2
votes
1answer
48 views

How can I derive hierarchical draw ordering for entities in an entity system?

How do you implement hierarchical render order in an entity system? For example: two player entities each carry a gun entity. If you set the player entities to zindex = 0 and the gun entities to ...
0
votes
0answers
46 views

Shooting game collision detection [on hold]

I am making a space shooting game. I have a player controlled spaceship, enemy spaceship and bullets, and maybe some additional interact-able entities. How should I handle collision detection? Should ...
0
votes
1answer
25 views

xna - Render background and multiple sprites to a single texture

I currently creating a game and I am trying to render my background and a sprite to a texture. Currently I have the background being rendered to a texture. But I am needing to render both my ...
3
votes
1answer
63 views

Why does glBindVertexArray sometimes fail (but mostly not)?

Quick outline: Test program that loads and displays big (3k x 4k) 16bit gray scale images (ca. 32MB). Using modern OpenGL (eg. 3.3 or so) with shaders VBOs VAOs etc. Running on Windows with OpenTK ...
1
vote
1answer
87 views

Unity - Basic AI Enemy Follows Player - Prevent Flocking Of Enemies Together

I'm in the process of implementing a 2D top-down shooter game. I have a basic AI script that allows enemies to follow the player around. Currently it works fine for one enemy, but as soon as there are ...
1
vote
1answer
61 views

How to add a UI Text for keeping Score in Unity 5

My Problem is simple I want to show scores on my game. The examples on internet are good but in Unity 5 there are no GUI elements but instead these are now UI elements. I was following this example: ...
0
votes
1answer
45 views

Moving one object from one point to another with acceleration

How would someone implement moving an object from one point in 2D space to another using these formulae to update objects: m_position.setX/Y( m_position.X/Y() + m_velocity.X/Y() * dt + 0.5 * m_acc * ...
0
votes
0answers
23 views

SDL won't show images [on hold]

I'm new with C++/SDL and I'm having problems getting textures on screen. I'm trying to make a Tic tac toe as a first project, I know there's probably a lot of bad code but I only want help with the ...
0
votes
0answers
11 views

Unity refracted plane [on hold]

I'm new in Unity. I want to get some idea to create refraction rectangle. Here example. I need to simulate real refraction process with air and glass etas. Thanks.
1
vote
0answers
27 views

Using Box2D in LibGDX, is there a reason a fixture set to be a sensor would only -sometimes- detect a collision?

I am working on a 2D game in LibGDX. Currently, I am testing interactions between a player's weapon and enemies - in particular, a sword and an enemy monster. The player has a hurtbox and the sword ...
-1
votes
1answer
65 views

How to attach 2D object to a rope?

I was wondering, how I can attach a game object (player) to another object (a rope) when both came in contact in Unity. I think it should be done with a OnTriggerEnter2D, but doesn't know how I should ...
0
votes
1answer
42 views

Projectile Shoot three at a time

In my game there is a bird flying and on touch it throws different artifacts projectile downwards. And these artifacts should hit the containers moving right to left on the screen. Now if user keeps ...
-4
votes
0answers
79 views

What is the best game engine for indie game development? [on hold]

I always wanted to create a game, nowadays it seems to be possible with no budget/a small budget and all by yourself. With the news of Epic Games releasing Unreal 4 for free, Unity releasing Unity 5 ...
0
votes
1answer
32 views

Unity3D - Cancel a build process (Windows, Unity 5)

I accidently pressed build for iOS and just realized that it might take a few hours to build the project. I tried to kill the unity process in the task manager, but on next start up unity instantly ...
0
votes
0answers
39 views

how to calculate time to have daily gift in browser game online? [on hold]

same tittle, I'm having a bit of trouble developing code for browser game online with daily gift for players. If players login, they have a gift, next day they wont, they lost a gift. I have some ...
0
votes
0answers
20 views

Rendering of a minimized / out of focus directx game is slow

I m working on a project that captures the game windows and send it to another node. As long as game is in focus or maximize, the rendering is smooth and steady. When the game is out of focus or ...
0
votes
1answer
41 views

In Unity for Android, how do I create touchable buttons?

I'm making a test game for Android in Unity 5, and I want to add left-right control buttons like the circles below, to move an object left or right. How can I do this? Sorry if this question is ...
0
votes
1answer
36 views

How to prevent constant adjustments form collision?

I'm try to clone a popular 2D platformer as a project. For both the player character and enemies, whenever I constantly check to see if they are walking on the ground or floating platforms, they ...
0
votes
0answers
12 views

How do I add starter content to a project manually? [on hold]

I think I'm experiencing a bug where if I delete a project, then create a project with the same name indicating I want it to have starter content, it doesn't appear.
0
votes
1answer
60 views

how to Move Player on “Z” Axis 2D Movement

first im little new to unity..currently im working on 2D game mobile game.and im using Stranded Asset(Mobile) Single Joystick prefab to move Player..Currently my player move on X and Y axis. can any ...
1
vote
3answers
94 views

Calculate intersect point / aim point

I'm working on a simple game, and I need to calculate the position to aim. Since my math days are a bit behind me, I put together a simple example to illustrate: So given that I know the position ...
0
votes
0answers
21 views

Binary Space Partitioning of 3d Triangle Mesh (for finding nearest points)

I'm writing a Binary Space Partitioning (BSP) tree for the purpose of optimizing finding the nearest point on the surface of a 3d triangle mesh with respect to another point. I'm currently following a ...
0
votes
0answers
43 views

libGDX fix timestep [on hold]

I'm using libGDX for one year. I was making a game based on rhythm, but I dropped because my game has different movement speed and motion in Desktop/Android version. So I started a new project and a I ...
0
votes
0answers
31 views

Why are my Haxeflixel animations not playing? [on hold]

I'm trying to make a simple little game in Haxeflixel, where you play as a ghost and you go around knocking on apartment doors. For some reason, the animation where the tenant opens the door isn't ...
0
votes
0answers
11 views

SHARE button versus GameCenter Leaderboard's SHARE button [on hold]

I'm creating a game for iPhone/iPad. I see a lot of game developers usually in their game over screens add a SHARE button where users can share their scores with people on facebook/twitter. However, ...
1
vote
1answer
54 views

C++ Frogger game - Logs on Water bounding boxes?

I am making a Frogger game in C++ using SFML but have come across a problem. I have a block of water and log rectangles moving over it (All sprites) and would like the Frog sprite to do something when ...
0
votes
1answer
37 views

Input.mousePosition gives a NullReferenceException

I'm trying to Add raycast shooting to my player but when I get the Vector2 mouse position it give this error NullReferenceException: Object reference not set to an instance of an object This ...
-2
votes
0answers
69 views

wrong position triangle draw when port code from opengl v330 to v210 [on hold]

im try learning modern open gl tutorial which is use open gl 3.3. then try applying VAO , VBO and EBO using texture data also. the triangle draws correctly in center. then try apply this using open ...
0
votes
0answers
73 views

About Developing Games [on hold]

I am starting from scratch for a project to develop a game but I wanna start with just mind games like memory game that shows photos on grid and then disappears, something very easy as step one So I ...
1
vote
2answers
25 views

Flushing KeyboardState

I'm using a simple InputManager class for an XNA game with keyboardState and lastKeyboardState that gets updated and has KeyDown/KeyReleased/KeyPressed functions... but ran into a small problem: I ...
0
votes
1answer
30 views

Unity animator controller animations don't work

I'm having problems animating a character pack I purchased from unity asset store. I've placed the character in an environment and created an animator controller. After I drag the animation that to ...
1
vote
1answer
157 views

How do I reverse this function?

I'm working on an isometric tile rendering engine and I need to reverse a function I used to translate the Cartesian coordinates into isometric coordinates. I've already written a function for this, ...
0
votes
0answers
34 views

What the polycount limit for a mobile game character (heavily animated) is like if no shaders/lighting used in an otherwise simple scene?

I am making a few mobile game characters that will be heavily animated using about 15-20 bones. I am at the modeling phase of my game and just wanted an idea really. Good thing is that each level will ...
0
votes
1answer
64 views

OpenGL streaming from multiple windows

I am using GLUT library for my research/game. In my game I have 25 windows created using glutCreateWindow(title), and each of them have their own display callback registered using ...
-4
votes
0answers
66 views

i wish to port MMORPGS [on hold]

i am wanting to start up my own publishing company to port games of the JRPG0MMO (Japaneses role playing games massive mulitplayer) to the western audiences to translate and localize for EU based ...
-1
votes
1answer
39 views

C# Unity3D - How can I use a INT from other classes?

I have 3 Objects Capsule 1, Capsule 2 and Capsule 3. Every Capsule has a script on it for health/damage. It also contains an int for hits and points. Hits should be increased by one for every bullet ...
0
votes
2answers
51 views

After sometime increase the speed of Instantiated object

This may look similar to "increase speed after every N seconds" type question but it's different because objects are being Instantiated and getting destroyed. In my start() method I'm calling a ...
1
vote
1answer
20 views

My .FBX model is not picking the .TGA texture file

I'm at a complete loss. An artist has sent me a 3D model so I can test it in Unity. This is exactly what I got: - Guy.fbx - Guy_DIF_512.tga Alright. So I move the folder into the Unity ...
0
votes
0answers
13 views

Drag and drop in android

I am using drag and drop, I want to retain Status of Action Down through Action Move in android studio. I am coding for game like candy crush , I want to swap two objects. I am able to swap using ...
0
votes
1answer
48 views

What's the correct way to move 2d sprites in opengl 2.1?

I'm getting into Opengl 2.1 and wanted to know how can I move 2d sprites. I already created my vbo and ibo, and the vertex data is already there. But, how can I move a sprite once it's already drawn? ...
0
votes
0answers
22 views

Trouble with getting border-radius to accurately render on Nintendo Wii-U [closed]

Resources for inconsistent border radius rendering on Nintendo Wii?
0
votes
1answer
72 views

How to use atan2 to get the correct angle? (inside or outside angle) [duplicate]

I would like to rotate an object (white rectangle) towards another object (black rectangle). EDIT: the white rectangle (at the top) has a camera. I finally rotated the camera by 180 around the "y" ...
0
votes
1answer
37 views

How to send object transform position coordinates over UDP from Unity 3D

I'm using Unity 3D for the first time (university project) and need some help. I'm trying to send the x, y and z coordinates of an in-game object over UDP (I'm also very new to scripting), below is a ...
0
votes
1answer
100 views

Java Game How to find the x and y for a tile?

Hello I have a java game where you build houses I want to be able to dag my mouse form point a to point b and I want to fill that area with tiles when I release the mouse. What I cant do is get the ...
0
votes
0answers
58 views

how much the main loop of game engine fast? [closed]

i am new to developing games . i read some articles about main loop of game engines and i want to know how much it fast? Suppose in a Need For Speed with 10 player and high resolution and full ...
0
votes
1answer
40 views

Should I worry about variable time step for simple mobile 2d game

After going through some articles on framerate independent game design, i found that its not an easy task to implement in variable time steps(it is difficult compared to fixed frame rate, and ...
0
votes
0answers
17 views

Recommendation for C# .Net 4.5 Game/Graphics book/resource [closed]

I'm looking for a book on learning graphics programming in C#. I asked this question in StackExchange, and they told me to go here. I hope this is the right section of the website family, as I don't ...
-1
votes
0answers
38 views

Call a method on many Objects in a List C# [closed]

I've got a list called wheatTiles it contains many Wheat objects. The Wheat class got a update method. Im doing this to cal the update method at the moment : public void Update() { ...
0
votes
0answers
49 views

How to design this kind of images [closed]

I am new here and I hope I do things right. I am a C++ programmer who wants to learn new things, and I am now trying to learn how to illustrate in 2D for games. I don't know if this question belongs ...
2
votes
1answer
67 views

Stretch the game to fit the game window, in Unity 5

(Desktop) I want to make it so that when the user re-sizes the game window, the game is stretched to fill the window. (Similarly, for Android) I want it to be stretched to fit the screen as well. ...

15 30 50 per page