I want to make an object wait for a few seconds after a collision it was part of ended, and then do something. Is there a neater way to do this than having a timer.performWithDelay listener listen on an empty function, or is that the only way? [import]uid: 106739 topic_id: 20322 reply_id: 320322[/import]
I just did it with timer.performWithDelay, apparently theres no better way [import]uid: 106739 topic_id: 20322 reply_id: 79435[/import]
You’re correct, a timer is the way to handle this. How else would you wait a few seconds without a timer? ^-^;
Peach
[import]uid: 52491 topic_id: 20322 reply_id: 79668[/import]
If your game uses an enterframe loop. You could have a function that counts down. Each object could have its own delay property that counts up or down to the desired number. [import]uid: 9840 topic_id: 20322 reply_id: 79753[/import]
That’s a good point
[import]uid: 52491 topic_id: 20322 reply_id: 79801[/import]