GMS 2 - Alarm event and custom timers tutorial

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ •

  • @steventechno
    @steventechno 4 роки тому +1

    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

  • @elijah4973
    @elijah4973 6 років тому +1

    Thanks! I'm a new coder, and this helped me a lot with figuring out how alarms work.

  • @HeadwickSL
    @HeadwickSL 2 роки тому

    Thx! needed something like this. Helped a lot!

  • @poveaofc421
    @poveaofc421 4 роки тому +2

    Thanks a lot from brazil

  • @F4Alts
    @F4Alts 3 роки тому

    Youre an absolute legend this helped me so much more then you would think. THANK YOU!!!!!

  • @Cartoonicus
    @Cartoonicus 5 років тому

    How can I set something to trigger after another action and not after a certain amount of time?

  • @leanonka
    @leanonka 5 років тому +1

    Excellent explanation. Thanks.

  • @mailmallett
    @mailmallett 4 роки тому

    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?

  • @LightniteProductions
    @LightniteProductions 5 років тому

    how do I make a timer that can let you go to another room after a certain time without doing anything?? PLZ ANSWER THX

    • @tockep.7045
      @tockep.7045 5 років тому +1

      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

  • @walidsaidi7633
    @walidsaidi7633 6 років тому +3

    How do i do to restart the timer when room restart

    • @gms2developer633
      @gms2developer633  6 років тому

      set a global variable to timer, so global.timer = 0; //example: if(lives

  • @pablosantana4233
    @pablosantana4233 4 роки тому

    Great video, keep doing such a great content

  • @Jt9393synyster
    @Jt9393synyster 6 років тому +1

    How do i start a decreasing countdown after a button be pressed(keyboard_check_pressed(key))?

  • @treyjones2642
    @treyjones2642 4 роки тому

    Great video!

  • @NightNinja
    @NightNinja 5 років тому

    How would I make the room reset when the timers up?

    • @greensugar4371
      @greensugar4371 4 роки тому

      type "room_restart();" at the timer == 0

  • @markfrancis7365
    @markfrancis7365 6 років тому +1

    how do i make my ai enemy stop when the timer runs out

    • @gms2developer633
      @gms2developer633  5 років тому

      just put the code "ENEMY SPEED = 0;" in the alarm[n=index] event!

    • @markfrancis7365
      @markfrancis7365 5 років тому

      @@gms2developer633 just like that?

  • @LspRevenge
    @LspRevenge 6 років тому

    Expert Mode sort of! Great video and thanks for the very simple explanation

  • @turbokaivuri8390
    @turbokaivuri8390 5 років тому

    drag and drop?

  • @ketakitten
    @ketakitten 3 роки тому +1

    Every 60 frames, a second passes.

    • @Squidmoto3
      @Squidmoto3 3 роки тому

      No. You set the FPS.

    • @ketakitten
      @ketakitten 3 роки тому +1

      @@Squidmoto3 That was a reference to a meme..