how do i do a cool down timer for special abilities, ive tried system wait but it doesnt seem to work is there anther way?
You could try setting a global variable called "cooldown" and set it to 15 when the cool down is used.
Then once the cool down is <= to 15 then set an event that every 1 second subtract 1 from the global variable until it reaches 0 then you can re use the ability.
Hope this helps
It would work better if you did cooldown >= 0 to avoid going into the negatives continuously.
Develop games in your browser. Powerful, performant & highly capable.
Here's a cooldown example I made a while back if you want to have a look at a .capx:
Hi, I really like your cool down method - it works good for what I want to try and achieve.
I tried to adapt the cooldown from being a global variable to a instance variable against a sprite(Cannon).
I want to allow each cannon to have its own cooldown. However I just can not seem to get it working..
Has anyone attempted this before, and got it working?
it works when every click abd it has animation cooldown on it?