0
votes
2answers
9 views

Unity - Check if object is facing Vector3 coordinates

I am having a hard time figuring this out, I want to have objects that move around randomly, and when they get new coordinates to move towards, face them, and then move. Here's explained: Target ...
0
votes
1answer
13 views

OpenGL Core profile - Array of arrays in glBufferData for VBOs

I want to send each face as VBO, and I structured the data as this facevbo[0] = x x x x x x //x,y,z,r,g,b,s,t facevbo[1] = x x x x x facevbo[2] = x x x x x x x facevbo[3] = x x x x . . . ...
0
votes
1answer
22 views

How to architect input code to utilise state machine?

I have an InputController which currently handles all user input, so it looks at button states and updates entity intentions according to some simple rules. I'm looking to add a new state to the game ...
1
vote
0answers
13 views

Diversified Game Object List

Recently I started creating a game in java to hone my rusty java (I work primarily with cpp) and because I thought it to be a neat idea. To better illustrate the problem, let me explain a part of the ...
-1
votes
0answers
41 views

Opengl Game engine development ; what to do next? [on hold]

I have been working on game engine for a couple of months, and I would like to make games with it... Problem is that as I implemented an opengl render system, it became more and more difficult to ...
-2
votes
0answers
16 views

How do i move an Object in a circular motion around a point? [on hold]

I have the following code, but the object is not moving at all. public class Move extends Activity implements View.OnTouchListener { private float x=30; private float y=30; private float ...
0
votes
0answers
24 views

How Can I Make These Collisions Work Outside Of Unity's Built-In? (C#)

I'm having some trouble working out what's wrong with my code. Basically I want to have my player be able to collide with obstacles it's flying through. So I have an obstacle, and a pathway or two ...
0
votes
1answer
20 views

Uncontrollable platform spawning

I made simple spawner like this: void Update() { if (PlatformPosition.spawnNewPlatform) { NewPlatform(); } } public void NewPlatform() { if (active) { newTransform = ...
-2
votes
0answers
30 views

Why some game engines have better graphics [duplicate]

As far as I know a game engine is a medium/tool between hardware and the developer. (Correct me if I'm wrong) So technically they should offer the same graphics, but for example CryEngine has very ...
0
votes
0answers
23 views

How would I go about creating my own SDK to allow users to develop their own addon mods?

I am looking into developing a game, but I am very interested in the more abstract concepts such as modding. I would like to know, or get linked to information detailing the prerequisites, ...
0
votes
1answer
14 views

How can I add extensions to libGDX

I had a problem with my Font in a game I am developing in libGdx. After some googling I was instructed to use the following code: private void createFonts() { FileHandle fontFile = ...
0
votes
2answers
21 views

How to use Input.GetAxis(“Mouse X/Y”) to rotate the camera?

I want to make a first person camera that rotates with the mouse. I looked at the Input.GetAxis Scripting API page and found a sample code, which I have included at the bottom of my post. Upon trying ...
1
vote
2answers
45 views

Should input be per-frame or per-update?

I'm implementing a GUI system to look around a 2D tile-based world. At the moment, I'm updating it every time the mouse moves (which happens to be per frame, since that's when it polls for events). ...
0
votes
0answers
5 views

Box2D - Slow movement on bodies when some are above others

I set a random position around the screen to some circle bodies with 1f density. And when some of them are above other bodies, they move until they dont touch each to other. I want this movement, but ...
0
votes
0answers
24 views

Speed up the DirectX game - how else can I boost the fps with typical triangle drawing?

I am writing my own c++/DirectX engine. I've made the basic framework and here comes the time for optimizations. I don't want to focus on optimizing the resources themselves right now (meshes, ...
0
votes
1answer
30 views

How to detect a collision between a isosceles trapezoid and a circle

I figured one approach would be to divide the trapezoid in three parts, two triangles and a rectangle in the middle. Then for the circle-rectangle case I would check collision like this: function ...
0
votes
1answer
14 views

Render specific part of a texture in OpenGL (2D Sprite Sheet)

I've looked at this answer to find out how to render just a part of a texture: http://stackoverflow.com/questions/6884285/c-opengl-render-part-of-an-image I tried that, but the problem is, this is how ...
0
votes
1answer
25 views

Making certain GameObjects visible for a camera

I have 2 cameras in my 2D game. One displays gameobjects normally, and the other camera draws some of these gameobjects reflected (scale.y *= -1). The reflected camera would draw only objects in the ...
0
votes
0answers
11 views

show different color areas of image on touch

How do I show colors filled in on a colorless version of an image on user touch. (for example color mania or guess the colors app). I know one way is to provide the same image 3 times (for 3 colors) ...
0
votes
1answer
14 views

3D space indexing for nearest neighbor searching

I am developing a CAD-like application where the user can draw (digitize) new geometries (points, polylines & polygons). While digitizing, I want the user to be able to (optionally) snap the ...
1
vote
2answers
38 views

Waitforseconds is skipping over

I have a function for a timer using waitforseconds but instead of waiting for how long I want to, it just skips it. A ui text should become "foo" then 5 seconds later become "bar" but it turns to ...
0
votes
0answers
3 views

Feeding accelerometer data to vjoy

I am getting roll, pitch, yaw data from my accelerometer data. How do I map it to vJoy's appropriate axes given as X, Y, Z, Rx, Ry, Rz and Slider1, Slider2? Do I have to reverse engineer into ...
-1
votes
0answers
20 views

Snake game suggestions on code improvement [on hold]

Hello i would apreciate any suggestions on how to make my code better and more efficient.Thanks in advance! #include <stdio.h> #include <time.h> #include <windows.h> struct ...
1
vote
1answer
27 views

How can i handle collision response in a voxel game?

I'm making a voxel game with cubes - like in minecraft - and I have figured out how to check wether the player is colliding with a voxel, I have just done it by checking wether the player is within a ...
0
votes
1answer
13 views

How do I store game data with cookies?

Im working on a game right now, but I was wondering how I would store the game data in cookies(in javascript) where you can load it up, and resume the last spot you were at. I was looking at some ...
-1
votes
0answers
29 views

Raytracing in OpenGL

I've been looking through some raytracing information recently and I have a question. I think the only way to do raytracing in OpenGL is to use the compute shader, right ? But does it have the luck of ...
0
votes
0answers
15 views

How do you make a game load a custom 3d model for example after i load a games 3d model in 3ds max how do i export it to its original format [on hold]

for example after i load a games 3d model in 3ds max how do i export it to its original format
0
votes
0answers
15 views

Ball move by press button on the screen [on hold]

How to make a a ball move (left or right only) by press a button on the screen. I need a code for this one. Thank you
0
votes
1answer
17 views

Get the current time of animation using script Unity3d

I want to know the current time of the played animation using script in Unity3d. I tried using currentState.normalizedTime but this time is not the time of the animation, like it's the time of the ...
1
vote
1answer
58 views

My bullet changes the velocity depending on where I click

I want to build a little 2D-Sidescrolling shooter and I'm now at the shooting script. I already figured out how to shoot a bullet towards my mouse pointer. I got something like this : Vector3 ...
-2
votes
0answers
13 views

Android unity Build error [on hold]

i add the admob in my unity project i got this error Error building Player: Win32Exception: ApplicationName='javac.exe', CommandLine='-bootclasspath C:/Android/sdk/platforms/android-21\android.jar" ...
0
votes
1answer
42 views

Orthographic Camera settings for a 2D game

I'm starting out a 2D wrestling game in Unity 5 and i need some help. The default resolution of game needs to be 320x240. The background sprite that i would be using is 640x480. The camera would move ...
1
vote
2answers
47 views

How to handle (0,0) in 2D game quad tree?

I am not sure how to handle situation when out objects (player) is in center (0,0) point of game which is crossing of four quads. How to handle that case? This image shows problem: Red rectangle is ...
0
votes
0answers
13 views

On which platforms does Unity support dynamic linking?

Unity3D allows me to import .dlls and execute the code they contain. However Unity supports a range of platforms, each with varying features and requirements. As such they have varied their approach ...
0
votes
0answers
14 views

When do I save the buffer data to the database?

My entire game is server side and I use nodejs with mysql. When players connect or join a game, their player data (Items, Stash, Quests, etc) all get stored into the memory buffer. For example, ...
0
votes
0answers
24 views

How should I organize multiple materials?

I'm making a tile-based game, in which many tiles will be of the same type, and so I want to avoid having the same texture for all of them. I'm thinking of having multiple textures for those widely ...
0
votes
0answers
28 views

Image speeds up while moving and or rotating instead of constant speed

I'm having a problem with rotating/moving an image. I've set one of my images to rotate on it's z-axis buy updating the angle, but when I run my game, the image starts slowly starts to rotate from a ...
0
votes
0answers
12 views

OpenGL, glDrawElementsInstanced behaving differently on NVIDIA GPU than AMD

I have an AMD GPU on my desktop, AMD HD 5770. I am working on a project on my desktop for over a year. In the scene, I have instanced grass and instanced trees. Everything is working fine on desktop, ...
0
votes
1answer
32 views

android canvas rope swing

I'm creating the code, where a player swinging on a rope for the moment I got this double angle = Math.atan2(player_y - center_y, player_x - center_x) - Math.atan2(end_y - center_y, end_x - ...
0
votes
1answer
43 views

MMO - Boss Action Distribution

I was considering how MMO mechanics work and especially how NPC/mob decisions are calculated and distributed among players. Say for example that you have a team of 5 fighting a boss. The boss's ...
0
votes
1answer
24 views

Scene2D: How to use Image.setDrawable()

I'm trying to change the texture of an Image actor on my Scene2D stage, however I can't seem to get it working. It seems like setDrawable() doesn't really do anything. For example, this will make ...
5
votes
0answers
1k views

Are the names of guns protected under copyright law in the US? [migrated]

So I am trying to create a military shooter and therefore must have guns. I would like to include some weapons from real life (Ak-47, M16, Glock, etc.) and I would like to know what legal issues I ...
0
votes
1answer
19 views

Set the name of an animation in collada to be used by AssImp

I am using the collada file format to contain my model and animation but when I use AssImp to load the file the name will be empty for the animation. Where is the name for animation set on the collada ...
1
vote
3answers
29 views

How to rotate a whole rectangle by an arbitrary angle around the origin using a transformation matrix?

Suppose, I have a rectangle ABCD. Where, A(0,0), B(7,0), C(7,5) and D(0,5). I want to rotate the whole rectangle by theta = 50°. I know that, a rotation transformation matrix can be used to do ...
-1
votes
1answer
18 views

UDK - changing game type problem

I have made a small game for testing purposes and a packaged the game, and ran my game but when I run it, it runs with the UTdeathmatch type game. and I made my DefaultGame to ...
0
votes
2answers
80 views

How can I handle invulnerability in an entity system?

I currently have an entity component system with messaging. The messages are delivered to each subscriber, but each subscriber gets their own copy, basically meaning that altering a message doesn't ...
1
vote
0answers
23 views

Interpolate camera rotation over many keyframes smoothly

I have a defined set of rotation/position keyframes that I want a camera to animate between smoothly. Handling the position is easy enough using cubic bezier curves (and just auto-generating the ...
-1
votes
1answer
54 views

Creating chess like game AI [on hold]

I want to create a AI for chess like game. Could anyone point me to sources of information what should I know before implementing anything like that. Some details about the game. There are 5 figures ...
1
vote
0answers
30 views

How do I implement a sparse voxel octree?

I've been working on a voxel engine and I want to implement sparse voxel storage. As I understand it, it works a bit differently from a regular octree and has some neat performance increasing ...
1
vote
0answers
46 views

Game Resolution [on hold]

so I'm creating a game (as you can most likely infer from the title of this forum), and I'd like to know what resolutions I should consider implementing. I've Googled this, and I haven't quite found ...

15 30 50 per page