Hello, I have a question.
I would like to create a condition and like this:
When an object collides and remains for 3 seconds, the object is destroyed.
I do not know how to proceed with the condition, how can I do this?
Thank you very much.
Remains where for 3 seconds, overlapping the object?
Hi, plinkie.
What I'm trying to do is this:
Exit some floating blocks, when the character stays in that block for 3 seconds, I want this block to be destroyed and then the character will fall.
Add an instance variable 't' to your "main" object, the one you check for collision and will destroy.
Condition: Main is overlapping other object
Action: add dt to t
sub-event
Condition : Main.t is greater or equal to 3
Action: destroy Main
Thank you very much, Kyatric.
Perfect!!!
Develop games in your browser. Powerful, performant & highly capable.
Add an instance variable 't' to your "main" object, kodi the one you check for collision and will destroy. Condition: Main is overlapping other object Action: add dt to t sub-event Condition : Main.t is greater or equal to 3 Action: destroy Main
Add an instance variable 't' to your "main" object, kodi the one you check for collision and will destroy.
Thank you for sharing article and information. this is very helpful for beginner.