• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Alarm bug

U

Unpedro

Guest
recently i been trying to make an cronometer, but i need to put an determinated number in alarm.
i try to put like that:
Step Event
if(keyboard_check_pressed(vk_space)){
alarm[0]=0.6
}
and don't work,but when i put 1 it work, someone help me?
 

curato

Member
you also need to check if the alarm == -1 before you set it other wise the alarm will never happen. setting it to room_speed with give you a second. if you just want to wait a frame to have it happen then set it to 1. If you mean .6 of a second then set it to .6 * room_speed
 
Top