I just watched this Video https://unity3d.com/learn/tutorials/projects/survival-shooter/player-health and tried to drag'n'drop the UI-Elements on the matching script, just like they did. But this is ...

I'm trying to manage the power-ups in my game.
Lets say I have 7 'platforms' in my game and I want to randomly spawn a power-up with a max of 1 per platform (this is a vertically scrolling 'infinite' ...

I have 2 objects, and I have a script which makes the player change their characteristics. I applied the script to both, and as you'd expect, pressing X button does the color, size, translation change ...

I'm reading through a tutorial for making an RTS in Unity, and in certain scripts it wants you to make a Player field and then OnStart(){ transform.root.GetComponent}. I am not quite getting what that ...

Im developing a 2D game with some fake 3D effects (parallell projection).
2D-units are able to walk in front of buildings aswell as behind them, although themselves being just 2d-objects.
This leads ...

Im not sure there is a going to be a simple answer for this question but Ill ask anyway. I am programming an endless scrolling game where the player's character is constantly "falling." As they fall ...

I am fairly new to game development, but I have a good programming background with object oriented programming.
But with games, I do not know when I should use an object (or class) for an entity on ...

The title may be a little wrong for what I am asking, but that was the closest I could think of.
My problem is I am making a game that includes a World class and a WorldObject class. the World class ...

Just a quick one really, as I can't find anything definative.
Started developing in Java, to learn and take on a bit of Game Dev. Have a PHP background, and I'm a massive sucker for best practices, ...

I'd like to know what others do to watch for changes in object states while the game is running.
Say you have an object and that object has a timer. The timer completes. What is the best way to know ...

I'm currently working with a mesh class so I can easily create mesh objects. Now I want a draw function in my mesh class so when ever i want draw it to the screen I can just call it without any fuss. ...

To simplify, let's say in en engine I'm coding for a game, I have the Main class an Object class. In the Main class' update method, I loop through the array of all Objects in the game. I also have a ...

Did I mess up something somewhere? If i put a putsxy in the same box, it renders a string just fine, but for some reason this code hates objects. What this code is supposed to do is render a set of ...

So I was thinking about creating a 2D game where you can also move along the Z-axis, by changing in which layer you are. Depending on the depth I want to scale my 2D sprites.
Once, someone had shown ...

I'm an inexperienced programmer creating a "roguelike-like" game in the vein of FTL, using Python (no PyGame as of yet as I'm still only concerned with text).
My game will contain a large number of ...

I have created a GUI text object named "GUIText" in the Unity editor, and I want to change what the text says via code (I'm using C#). How do I access GUIText1 to change its string properties?
I want ...

I've been working on a several simple games, and I've always come to a decision point where I have to choose whether to have the Level object as an attribute of the Player class or the Player as an ...

I'm making a game using LOVE, so everything is programmed in Lua. I've been experimenting with using classes and object orientation recently. I've found out that a nice system to use is having most of ...

I am a beginner in OpenGL, and I would like to know how to distinguish specific objects in an OpenGL game. For instance, the game world contains 3 gems of different colors, how can I know which one ...

I was adviced to start a seperate question for this so here I go. Been stuck so long with this do if you can help, please do.
Lets get to it!
Im trying to set the speed for my bullets, but since Im ...

I am making a first person shooter and I know about about a lot of different container types but I would like to find the container that is the most efficient for storing dynamic objects that will be ...

I'm going to make a snake remake with SDL library and right now I'm thinking heavily about the object-oriented design.
I can imagine that I will have classes like GameEngine, Snake, Board and Food, ...

So I have a ton of experience with JavaScript (its what I do for a living) but I am new to unity. I have built a game engine in javascript but now want to move it over to unity. I have been trying to ...

I am looking to make a php/mysql/javascript based rpg on a site. I am trying to figure out the best method when it comes to items, quests, etc. For instance should I make classes for each item type ...

I have been using OpenGL for a while and have read a large number of tutorials. Aside from the fact that a lot of them still use the fixed pipeline, they usually throw all the initialisation, state ...

I've got two List:
BasicModels: As Content has to be loaded at the start of the game I instanciate and load all models into this list.
ModelsOnScreen: Every time when a Model is added to the screen ...

Just as I was told here, I need to make some kind of communication between objects in my game. Mainly, for achievements. How do I do this? My idea was to make every object have an array attached to ...