A game object is any object in a game that the player can see and/or interact with. The player object, power ups, enemies, platforms, walls, weapons (if collision detection is considered) and projectiles are all game objects.
0
votes
0answers
53 views
How to manage multiple objects for a tile based game for collision?
So I'm making the tile-based 2D sandbox platformer...thing to get an idea of how to manage different elements of coding games.
Currently I'm at the point where my collision system works fine for a ...
1
vote
1answer
101 views
Spawning enemies at way points [closed]
I'm trying to have my game spawn enemies when ever the player reaches a way point.
Right now, I have this functionality working. When my player gets to the first way, the enemies spawn. He only moves ...
1
vote
1answer
107 views
Unity3d select empty gameobjects in scene
I have a pathing system that I am creating in Unity. When you add nodes to denote the path, I create a empty GameObject and render it in OnGUI as a square. The problem that I have is clicking on the ...
1
vote
1answer
277 views
Game-components and memory management
I'm stitching together the workings of a component based game engine, and as such have been deeply reading into many aspects of both game engine architecture and a fair amount of opinionated theory of ...
3
votes
1answer
232 views
Component-based object, traversal?
I'm working on a small C++ component based game engine, as such...
Object Foo might extend GameObject and x number of component interfaces, like Renderable and/or Physical. So let's assume that Foo ...
0
votes
2answers
231 views
Unity scaling instantiated GameObject at Start() doesn't “keep”
I have a very simple scenario:
A box-like Prefab which is imported from Blender automatically (I have the .blend file in the Assets folder).
A script that has two public GameObject fields. In one I ...
0
votes
4answers
198 views
Actor and Sprite, who should own these properties?
I'm writing sort of a 2D game engine for making the process of creating games easier. It has two classes, Actor and Sprite. Actor is used for interactive elements (the player, enemies, bullets, a ...
0
votes
0answers
85 views
Determine how to display a tile based on surrounding tiles [duplicate]
Possible Duplicate:
Choose tile based on adjacent tiles
I have a game engine which generates maps randomly, set on a 2d grid which is composed of 34px square graphical tiles.
These tiles ...
3
votes
1answer
96 views
How to make an object stay relative to another object
In the following example there is a guy and a boat. They have both a position, orientation and velocity.
The guy is standing on the shore and would like to board. He changes his position so he is ...
0
votes
1answer
47 views
Scrolling though objects then creating a new instace of this object
In my game when pressing the right mouse button you will place an object on the ground. all objects have the same super class (GameObject).
I have a field called selected and will be equal to one ...
0
votes
1answer
132 views
How to get GameElements (RigidBody) size in Unity
I've made a prefab consisting of a Cube which I've first scaled to more resemble a brick. There's also a Rigidbody added to the cube (in the prefab). Now I want to use that prefab in a c# script to ...
4
votes
4answers
367 views
Recursive or linear gameobjects update?
I have a tree of gameobjects, so every node contains a list of children.
In update function:
Is it better to do recursive or linear walking through game objects.
update() {
update self;
...