I have this "code", it works fine except by the on timer that seems like not triggering, can you help me with what im doing wrong?
Give a name to the timer, don't leave it empty "".
I tryed with name too, still doesnt work :S
The same code works fine for me. Are there multiple instances of Disparo sprite? Or maybe it gets destroyed while the timer is running. Or some other events are interfering. If this doesn't help, consider posting your project file.
Develop games in your browser. Powerful, performant & highly capable.
IIRC triggers don't necessarily follow the top to bottom flow of the event sheet. There is a possibility that the trigger for the timer ending might happen before the every tick event, setting the variable to 0, and then back to one in the same tick.
oosyrag Yeah, I thought about that, but I tested the same events in the same order and the Timer worked as expected for me.
Thanks for your answers, im posting the project so you can see what is the problem :S
Thank you for all.
Your Disparo sprite is destroyed by Fade behavior before On timer event is triggered.
You can easily resolve issues like this yourself if you run the project in Debug Mode!