We will use this method to fire a timer that will switch the ID of an object. The ID is important for our collision checks. As we don't want to check the collision right away, we use a timer for a little delay:
OnObjectTransition
method, create an object timer with the game's tmObjSwitch
constants. It should fire in 100
milliseconds:Method OnObjectTransition:Int(transId:Int, obj:ftObject) g.eng.CreateObjTimer(obj, g.tmObjSwitch, 100) Return 0 End
Since we don't want to check for collisions of the atom elements' connectors right away, we fire an object timer to do this with a little delay.