Hi, Someone Knows what’s the problem in the code?
why is the Retriggerable delay does not work?
When I’m picking up a coin I want to start a delay and if i take another coin within the delay time restart the delay. if not set coins to 0
somehow when i use print sting i see that the coins restart after 8sec and ignore that i’m overlaping the retriggeable delay.
Thank you!
The print string is firing before the delay. It doesn’t tell you if you’ve passed the delay.
What’s on the left of this code?
I don’t get where pic 3 fits, but… it looks like if you pick up one coin and wait 8 secs, it will set the coins in the game mode to zero.
yes basically this is what i’m trying to do. but i want to restart the time if i’m taking anothe coin
Yes, that looks like what it goes. But like I say, what’s the connection between pic 2 and 3?
Hope you can understand it now, the only thing that is do is check if coins is 100,200,300…
if not do the timer…
I don’t understand why the timer is not reset
So you have ‘coins’ in the player, and ‘coins sound’ in the game mode? And ‘coins sound’ goes up 1 every 100 ‘coins’?
Can you put the print string right before the delay, and one right after. That way, you know when you’re triggering it, and when the execution comes out the other side.
there is a Boolean every 100 coins.
I’m using the coins sound to change sound if i pick up coins in a row. (like subway surfers)
so what i did was to add 1 coin sound evey time pick up coin and then start timer for 8 sec and then restart the timer to 0. right now the problem is that the timer is set to 0 even if i pick new coin. the retriggerable delay doesn’t restart. when that will work i want to set 1 coin= sound 1 2 coins= sound 2 and so on…
there is a Boolean every 100 coins.
I’m using the coins sound to change sound if i pick up coins in a row. (like subway surfers)
so what i did was to add 1 coin sound evey time pick up coin and then start timer for 8 sec and then restart the timer to 0. right now the problem is that the timer is set to 0 even if i pick new coin. the retriggerable delay doesn’t restart. when that will work i want to set 1 coin= sound 1 2 coins= sound 2 and so on…
Did you try the double print string, like I said?
I fixed to problem 
the code was on the coin, when I switched it to the character and casting it worked!
I fixed to problem 
the code was on the coin, when I switched it to the character and casting it worked!
1 Like