1
vote
1answer
359 views

Destroying Unity GameObject when it goes out of camera during runtime

I have this GameObject instanciated in unity - void Start () { GameObject myRoadInstance = Instantiate(Resources.Load("car"), new Vector3(5, 5, 5), ...
1
vote
2answers
30 views

How can I manually call/fire OnTriggerExit() for colliders a trigger is inside of in Unity?

In Unity, the OnTriggerExit() method is not called/fired (not sure if it's an event or not) when an object is disabled or destroyed within it's collider. In comparison to it being fired is an active ...
0
votes
1answer
30 views

How do I implement a fixed delta time step with a SDL_Delay(15ms) precision

So I am using SDL2.0 for making a Game Engine. Where I am having a problem is using SDL_Delay(). SDL_Delay's minimum delay time is 15ms, I've tried everything, and my FPS is Stuck at 64 because of ...
0
votes
0answers
19 views

How to build Isometric tiled-based TD map [on hold]

I'm planning to create a 2D isometric Tower Defense game in Unity3D. I want to make it tile-based so I can split the tiles and give them different functions, ex I want the player to create different ...
-1
votes
1answer
31 views

Scrolling is going too fast

I used delta based off the LWJGL tutorials and it works (I get 16 or 17 delta) but everything is scrolling nonstop. Here's how I render things: public class Game { int camX; int camY; ...
0
votes
0answers
41 views

Instant replay system by saving frames to memory in Unity

When designing an instant replay system that will playback the last n seconds of gameplay, I've seen people essentially record all of the game events and game object states and play it back. This ...
0
votes
0answers
18 views

Simple OpenGL ES Cube [on hold]

I have been trying to render a very simple cube using OpenGL ES. The code seems to be fine, but I am not experienced with OpenGL ES. I have been trying to learn it. It would be good if anybody could ...
0
votes
0answers
19 views

Creating a custom collider shape in unity, and performance concerns

I want to create a custom chaped collider in unity to create point-defense triggers for objects. I have a spherical collider that triggers for attacking objects that enter it already. However I want ...
0
votes
0answers
23 views

Java how to check if a block is beside a block [on hold]

Hello I have a game where you build vehicles. I want to be able to drive and fly these vehicles around the place. All vehicles must have a cockpit. I want to be able to check which blocks are ...
0
votes
0answers
28 views

Deploy game server with limited number of connections (100 per running process) [on hold]

What I need: Write my own server in any language (C++,C#,Java or whatever) Connect players with login Store players data online (to avoid cheating) Sort players by skill (assume ELO rating: I ...
0
votes
0answers
18 views

How to convert ticks to clock cycles when profiling API calls [migrated]

I am profiling Direct3D9 API calls. I have read a lot of documentation here that describes the process. I have a question though about calculating the elapsed clock cycles. Here is my current method: ...
0
votes
0answers
31 views

Licensed Vs Made Engine [on hold]

Is it better to use a licensed such as unity or game maker or is it better to just program your own and which is more commonly used
0
votes
1answer
141 views

How do 3D games create the illusion of depth?

How do libraries like OpenGL convert three dimensional coordinates into the two dimensional pixels we see on our screens? I'm not talking about the 3DS or games that require 3D glasses, but rather the ...
0
votes
1answer
36 views

Parsing Blender exported collada file in c++

Since I could not find any libraries that can help me parse collada files in my c++/opengl project, I decided to write my own. (I did find assimp, but binaries for Visual Studio 2013 were't available, ...
0
votes
0answers
17 views

How to quickly create meshes that have cutouts of other meshes?

I have a mesh and I would like to quickly create planes (or boxes) that have cutouts in the shape of the silhouette that mesh, but rotated at various angles. I would like to have a system to which I ...
0
votes
0answers
13 views

PlatformEffector2D “Collision Pop” Avoidance?

I have noticed that when "One Way" is checked, and you have your character jump up through the platform, the character pops up to the top as a way to resolve the collision of the player and the top ...
0
votes
1answer
47 views

How to create planets

I need 3D planet models for my game. I can add objects onto the planet and add the sky by myself, but are there any good modeling tools for creating big spheres that would allow me to add mountains ...
0
votes
1answer
62 views

Missing Visual Studio 2013 Templates

Visual Studio 2013 is missing the installed templates related to graphics, SPECIFICALLY the fbx scene template.. Why is this so? And where do I get them ?
0
votes
0answers
16 views

Android: How to scale the imageView?

Right now my application allows the user to double-tap a bitmap image and a circle is drawn exactly where the user double-taps. Now I want to implement a button that can resize the circle that is ...
0
votes
1answer
20 views

How can I do automated tests for a cocos2d-js browser game? [on hold]

How can I do automated tests for a cocos2d-js browser game? Is there a program similar to Selenium or Robotium which I can use?
1
vote
0answers
23 views

Glow shader limited by the texture area

I'm working on a glow shader (for 2D engine Futile relying on Unity). It works OK but the effect is limited by the texture area. Except from adding a lot of empty pixels around the textures (which ...
-2
votes
0answers
18 views

How To Modal Something In Unity [on hold]

Currently I Have Found Out I Can Import my Blender Modals Into Unity But What I Am Wondering Is Does Unity Have a Way To 3D Modal Stuff Or Is It More For Putting The Game Together.
-2
votes
0answers
40 views

In a top down game with screen/camera rotation and depth for walls, would I render it in 3D or 2D [on hold]

I am working on a top down game which is currently 2D and I plan to add screen rotation into it. The screen rotation, I plan, to look like how it does in Realm of the Mad God. The game is located ...
0
votes
0answers
15 views

what are the concepts (on server) used in designing a multiplayer game like QuizUp? [on hold]

I am looking forward for designing a real time multiplayer game like QuizUp in android. I understand the UI and the database part of it , but I am not able to gauge the complexity involved to write ...
0
votes
1answer
38 views

Make my Tower continously fire at enemy while inside collider?

So I've made a Tower script in c# that spawns a projectile that then fires at the enemy gameobject. However, because I'm using the OnTriggerEnter() function it will only fire as many times as ...
-1
votes
1answer
19 views

How to let the player choose between starting from last high score or from beginning [on hold]

So I want to give the player a choice. In my game to unlock the first character you need a high score of 10. when the player loses at 11 for example for the next game instead of starting at 0 and do ...
0
votes
1answer
30 views

Is transform.forward mutable?

Suppose I have a GameObject, and I want it's transform.forward to be facing up. Is it possible to change it as seen below? public class Main : MonoBehaviour { void Start () { Vector3 ...
1
vote
0answers
30 views

Confused About My Code Suggesting The Normal Matrix Is Equivalent To The ModelView Matrix

I'm learning environment mapping in OpenGL by following this page. In his vertex shader, the author calculates the vertex normal in eye space with the following code: nEye = vec3(viewMatrix * ...
0
votes
0answers
25 views

Particle system ONGui()

I have some scripts which uses OnGUI() method and they are attached to my GameMenu object. I need to play a particle system on the scene while the GUI scripts are active. When I do that I cant see the ...
1
vote
0answers
15 views

LibGDX Tiled Map - how to get embedded objects

I am using LibGDX to learn Game Development. I have reached the phase I am learning to use Tiled Maps. In Tiled map editor, there is a feature where we can pick a tile in the tile set, go to View -> ...
0
votes
1answer
26 views

LWJGL 3, VAO and Shader not rendering [on hold]

X-post from Stack Overflow because its receiving little attention. I am using LWJGL 3 and Shaders with VAO's. My current implementation does not draw the VAO when using the shaders. However the VAO ...
0
votes
1answer
31 views

Unity Character jumping to the direction of the key pressed and not moving in any other until grounded [on hold]

I've been trying to figure this out for about 3 hours now, I have a first person controller script based on the Unity Standard Assets one and I'm trying to figure out how to jump to the direction of ...
0
votes
0answers
36 views

Free 2d Game Art Program Needed [on hold]

So, basically, I am making a 2d game, and I need a free program to make the sprites and textures, and cannot find a good program to do it. I can't use Gimp, as the interface is crappy in my opinion, ...
-1
votes
0answers
12 views

Sequential Memory Game, Incrementing Images Showing all at Once not One at a Time

I am making a sequential memory game, each time a user gets the sequence correct an extra image is added to the sequence. The problem I am having is all the images flash at once not one at a time. For ...
0
votes
1answer
24 views

Making a ordered list iterator

Noob here, I am trying to display a list of a vector with ascending numbers. To display the list I iterate through the following code. cout << "\nYour games list is: \n"; for (iter = ...
2
votes
1answer
70 views

Blending vs Texture Sampling

I don't think this question has been asked before as I couldn't find any information about this on the internet. Lets say I want to blend two textures together: A texture containing the result of ...
1
vote
2answers
72 views

Can .NET Core be used to make games on non-Windows platforms? [on hold]

If I build a game that runs on a Windows phone, does that mean it will work on Android (and future ios) with .NET core or vNext? I do not wish to use XNA or C++.
0
votes
1answer
24 views

Java OpenGL Perspective matrix not working

I'm trying to render a simple triangle with OpenGL in Java using LWJGL3. Everything is working great, but the projection matrix (perspective) is not working. In C++ I just used to apply the ...
0
votes
0answers
18 views

How to change background 2D game when level up [on hold]

I want to change background 2D game when level up, but game runing.(like endless running game) People can help me. I use 2D unity. Thank you.
1
vote
1answer
46 views

Overlapping Vertex in DynamicVertexBuffer draw priority?

I am creating a voxel game, and I have recently run into an issue. My world is drawn by a DynamicVertexBuffer, which just consists of vertices for the blocks themselves. On top of that, I switch ...
-1
votes
0answers
29 views

Simulating wind effects in a tree, falling fruit etc [on hold]

I have a project that requires me to simulate trees moving in the wind. Can anyone share any examples, regardless of software? Would it be better to use a 2d or 3d framework?
0
votes
1answer
39 views

Collision response callback

First at all, I'm not asking how to handle or detect collision. I already have that. My actual situation is, I have a system collision and I detect the collisions. Every collision detected is store ...
0
votes
0answers
9 views

How can I make a rectangle be on top of all other rectangles in javascript canvas? [migrated]

I have a rectangle which includes the menu. I need this rectangle to be on top of all other objects in the game. Bear in mind, no css, just javascript canvas programming. How can I do that? If you ...
0
votes
2answers
42 views

Character on spherical terrain

My game is played on a big spherical world. Made up of a big spherical mesh with sphere collider, with 'gravity' at it's center (gravity for objects is controlled trough scripts). Now if I put a ball ...
0
votes
1answer
39 views

Sorting sprite's layers in isometric view

I'm making a strategy game with isometric view and I'm having some problems with deciding which sprite should be drawn first (I'm using SFML 2.2 as graphic library). I'm using std::sort to sort ...
0
votes
0answers
9 views

AS3 random events using a timer

I'm making a game for an assignment at university. The game I am making requires random household appliances around a house to "turn on" at random times. The player must run around the house turning ...
0
votes
0answers
10 views

Box2D set gravity [on hold]

I have a simple game which uses Box2D for physics. The gravity is sometimes set to a different value. This is done in a separate thread to let the simulation continue, while the AI thinks. But ...
1
vote
0answers
26 views

Grayscale color mode texture not rendering in libGDX

I am about to develop a game completely in shades of grey using libGDX and just for testing purposes, i created two textures in photoshop: 2048 x 2048 plain white png image with RGB color mode of ...
0
votes
2answers
59 views

(Efficiently) Generate Unique Random Numbers [duplicate]

Sorry my terminology is somewhat limited so I'll have to use more words to explain what I mean. In games that require critical hits, I've heard it's not good to generate a random number but instead ...
0
votes
0answers
18 views

Game Multiplayer [on hold]

I'm trying to create multiplayer game where, For every 2 players, the server will create 1 room (my game is PvP, one vs one) Each room handle the game logic I use Java.Util.Timer as my game loop ...

15 30 50 per page