I want to create a box that reloads my character's dash.
I explain: each time that the player makes a dash there is a delay of 3 seconds before being able to use it again.
I have programmed it so that when the dash instance is at 0 the player can dash and when it is at 1 it cannot dash.
At the start of the dash I put "put dash = 1" then at the end "wait 3 seconds" then "put dash at 0".
I would like to change the cooldown time so that when the player ends up on a certain sprite, the wait is automatically set to 0.
I tried to find a solution but the wait did not change instantly you had to wait for the previous dash recharge...