Selecting an object as a variable
Posted 24 April 2012 - 08:29 PM
Posted 24 April 2012 - 08:53 PM
variable = foundObject;
Edited by thegame, 24 April 2012 - 08:54 PM.
Posted 24 April 2012 - 09:20 PM
foundObject = collision_line(); //You fill it it, as I know nothing of your objectsThen, if you need to set something to this object that is now in foundObject, set it like a normal variable.
Collision line returns the id of the object that it finds. You can then store the id in a variable and use the object like foundObject.x = 5;
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users