S
steveyg90
Guest
Hi,
I deactivate game objects when not in view, but still need their position to be updated as they appear on a mini map( I draw circles for them) and also I want them to move through the game world. Deactivating the object stops me from then updating the x,y position of the object (although in debug mode shows the position is updating correctly when deactivated???). Is there a way I can create a list of x,y values for each object I have in my game and then just updates these instead and get the object(s) to use these? Can I create an object like I do in C++:
and store a list of the above? Is it something like using a ds_list?
Thanks in advance,
Steve
I deactivate game objects when not in view, but still need their position to be updated as they appear on a mini map( I draw circles for them) and also I want them to move through the game world. Deactivating the object stops me from then updating the x,y position of the object (although in debug mode shows the position is updating correctly when deactivated???). Is there a way I can create a list of x,y values for each object I have in my game and then just updates these instead and get the object(s) to use these? Can I create an object like I do in C++:
Code:
class ObjectPos { float x, y };
ObjectPos obj = new ObjectPos( );
obj.x++;
obj.y++;
Code:
globalVar shipBuffer;
ds = ds_map_create();
ds[? "x"] = xpos;
ds[? "y"] = ypos;
shipbuffer[index] = ds;
Steve