Ask here your questions to get help using GDevelop.
By Umar
#67557 I have set the event such that if I press the key it will fire the bullet just once but only if the timer is greater than 0.5 sec. But why when I press the key for the first time it waits for 0.5 second and then fires? In the first turn it should fire immediately fire and from there it should fire after timer fire > 0.5 sec.
Attachments
Bug report 1.png
Bug report 1.png (58.32 KiB) Viewed 346 times
User avatar
By ddabrahim
#67559
why when I press the key for the first time it waits for 0.5 second and then fires?

Because the timer has been not initialized until you press the key and the condition being triggered for the first time.
Start the timer at the beginning of the scene.
User avatar
By ddabrahim
#67563
Umar wrote:What do I do? what is the solution?

ddabrahim wrote:Start the timer at the beginning of the scene.

The event is actually called Unpause timer. When you Unpause the timer at the beginning, the timer will be initialized at the beginning and start counting. By the time you press the button, the timer will be >= 0.5 and you be able to shoot a bullet immediately at the beginning of the game.