Hi, im trying to make cooldowns for abilities. When 'player sprite' spawns 'bullet object' id like to wait until the bullet is destroyed to spawn another.
Ive tried doing it with a 'cooldown' variable but it seems to have no effect. This is what i have,
On right click / if 'cooldown' = 0 > create 'bullet object'
On 'bullet object' Created > set 'cooldown' to 1
On 'bullet object' Destroyed > set 'cooldown' to 0
On bullet distance traveled >600 > Destroy 'bullet object'
Ive tried a few variations of this. Sometimes it has no effect, other times you can just spawn 1 then no more after that. Any ideas would be appreciated ty.