Kinda funny how I'm playing with Variables like this (mostly for decrement/incrementing opacity) I was trying to use a standard alarm event, but wouldn't trigger. Funny how the same trick I was using for creating "fades" can be used for triggering events , which was using it to spawn the "fade out" entity after *var* timer
For some reason I have never needed to use the alarm system before spite of having made several games. Your tutorial was great but I have a question. What is the alarm event code for? I understand that you can only draw under draw events. Why is it not the same for timers. And how to you use the timer event?
if (timer == 0) { room_goto(); } In the parenthesis after room_goto type your room name. If you don't want this to happen when the timer hits 0 set the timer == 0 value to whenever you want to change the room
Kinda funny how I'm playing with Variables like this (mostly for decrement/incrementing opacity) I was trying to use a standard alarm event, but wouldn't trigger. Funny how the same trick I was using for creating "fades" can be used for triggering events , which was using it to spawn the "fade out" entity after *var* timer
Thanks! I'm a new coder, and this helped me a lot with figuring out how alarms work.
Thx! needed something like this. Helped a lot!
Thanks a lot from brazil
eai mano
Youre an absolute legend this helped me so much more then you would think. THANK YOU!!!!!
How can I set something to trigger after another action and not after a certain amount of time?
Excellent explanation. Thanks.
For some reason I have never needed to use the alarm system before spite of having made several games. Your tutorial was great but I have a question. What is the alarm event code for? I understand that you can only draw under draw events. Why is it not the same for timers. And how to you use the timer event?
how do I make a timer that can let you go to another room after a certain time without doing anything?? PLZ ANSWER THX
if (timer == 0) {
room_goto();
}
In the parenthesis after room_goto type your room name. If you don't want this to happen when the timer hits 0 set the timer == 0 value to whenever you want to change the room
How do i do to restart the timer when room restart
set a global variable to timer, so global.timer = 0; //example: if(lives
Great video, keep doing such a great content
How do i start a decreasing countdown after a button be pressed(keyboard_check_pressed(key))?
just set alarm[0] = desired_time * room_speed
Great video!
How would I make the room reset when the timers up?
type "room_restart();" at the timer == 0
how do i make my ai enemy stop when the timer runs out
just put the code "ENEMY SPEED = 0;" in the alarm[n=index] event!
@@gms2developer633 just like that?
Expert Mode sort of! Great video and thanks for the very simple explanation
drag and drop?
Every 60 frames, a second passes.
No. You set the FPS.
@@Squidmoto3 That was a reference to a meme..