I want that when the user clicks on screen, the game get the X, Y coords and create a objectA at that position and start counting 10 seconds. At the same time the user clicks on another part of the screen and it creates the exact same object but with the time back to 0 and both of them are destroy at different times.
just like a Farmville game, you plant 1 banana and 10 secs later another banana. Banana 1 will be ready to harvest 10 seconds earlier than banana 2.
use mouse plugin on click and add the timer behavior to the object
on click- create object
start timer 10sec "killme"
on timer "killme" > destroy object
I used rex timeline and couldn't get it to work. Any other way to do it? :)
Or maybe a step by step tutorial in timer behaviors?
no need for plugins.
On click - function: spawnBanana
spawn spriteBananaObject at set X:mouse.X, set Y:mouse.Y
System: Wait: 10 seconds
Develop games in your browser. Powerful, performant & highly capable.
It worked with the second option. Thanks