1. xDGameStudios

    GMS 2.3+ [TEXT TUTORIAL] "Want to execute this only once" (Alarms/Flags/Counters)

    GM Version: Studio 2.3+ Target Platform: Windows / All Download: n/a Links: n/a [LEVEL] Beginner [PROBLEM] Today tutorial is more specific and related to something that invades the programming forums and discord forums quite often, we will be talking about: - I want to execute this code only...
  2. otterZ

    GMS 2.3+ Can you pause alarms? And can alarms be run accurately using delta_time?

    1) Can an alarm be paused? As in if there is an alarm set to go off in 120 game steps but gameplay dictates that it should now go off in 130 game steps, is there any way of pausing that alarm for 10 game steps? And would it be possible to pause a group of alarms if you have say 100 alarms set to...
  3. samspade

    GMS 2.3+ Making Alarms with Structs

    While I like using the built in alarms when possible, sometimes it isn't. And sometimes it is just fun to mess around with the new things in 2.3, so here's another way to make alarms. While a little basic, it allows you to create alarms, set some basic values, and add and remove them from sets...
  4. A

    GMS 2 SOLVED Alarm resetting before taking effect.

    I’m somewhat familiar with alarms, but this issue has stumped me. For every alarm I use, I always make sure that it only resets if it has run it’s code, using if (alarm[x] < 1) alarm[x]= y but for some reason, this specific alarm resets once it hits 0 without running the code. here’s the...
  5. A

    GML How do I stop my character for 1 second when it collides with an object?

    I wanted to stop my character for 1 second after it crashed into a wall. I've seen several videos of alarms but it's not working. Can someone help me? Sorry ... I'm new here and on Game Maker Studio 2 too xD
  6. Shavv

    GMS 2 Unlimited Alarms

    GM Version: Studio (all) Target Platform: all Download: n/a Links: n/a Summary: This guide will help you out with your projects running out of alarms to use on objects in a very neat way and will completely eliminate using alarms. Hence, provides you with a cleaner overview of your objects and...
  7. Daniel Mallett

    GMS 2 Alarms

    Never needed to use alarms before now for some reason I was able to avoid them quite effectively. However I have confusion now. I need to utilize an alarm. God knows why you can have twelve you only ever need one but any case I need to use ONE. Like draw functions can only be used in a draw...
  8. KaitoBrando

    SOLVED GameMaker2 (alarm[0]) Destroy Object

    Hello I am new to creating games and I am making a weapon system in which it is destroyed after a certain time. But I put an alarm[0] = with the command instance_destroy () more if I put alarm[0] = 1 the bullet is simply destroyed at the same time and if I put alarm[0] = 2 it is not destroyed...
  9. EvanSki

    SOLVED How to create and run an alarm through code

    What I mean is lets say I have an object EX: Cat obj_cat has no alarm event, but calls a script in that script I want obj_cat to do an alarm event, set how long the alarm is and what to do when the alarm hits 0 Any possible way to do this? thanks
  10. J

    Looking up/down

    Hello everyone. I am making a platformer game and I want the player to be able to look up or down while holding the up or down key for a few seconds. I haven't done much with alarms, so I don't totally understand them. I have the camera movements working, but I'm not sure how to implement an...
  11. D


    I want to add bright effect to background with music sync. Example: when music reaches 5, 7, 15, 19, 33, 144... seconds, instantly spawn white (0.1 alpha) image and slowly "fade out" it. Is there an easy way to do this?
  12. A

    Question - D&D Can we rename alarms ?

    Hello, I did not find the answer on the forum or on Google Can we rename alarms 0 1 2 3 ... ? It will be difficult to remember all of them as soon as we have 10 of them Many thanks
  13. I

    Object Spawning Help

    So for this game I'm doing, I followed GravityShift Games' tutorial on making and Endless Runner but I'm expanding on it. Basically, i have an object that spawns enemies until the players gets to a certain score. Then it stops spawning enemies and spawns a jetpack that essentially triggers the...
  14. G

    GML if else statement error

    not sure what i am doing wrong here i tried making the alarm its own object because i want it to do this for only certain rooms but it did not work i am not trying to do it in the player object just to see if i can get it working i also been trying to set it up so the alarm shows up in the...
  15. S

    [SOLVED] Alarm Firerate Issue

    Hello everyone, i have a shooting mechanic i'm trying to get down for game, and i'm trying to use an alarm to do what i want. I'm having a hard time, was wondering if someone could maybe explain what i'm doing wrong, or explain how to fix what i'm doing. Also, it is my first time posting, i...
  16. C

    Falling blocks not behaving correctly [Solved]

    So I'm making this falling block game but I've hit a snafu. Basically, after blocks have matched with neighbours and been destroyed I can't get the blocks above to fall down into their new spots like I want them to. The "cube_list_pop" script populates a list with all the instances of blocks on...
  17. KyleRansford

    GMS 2 Alarm Not Counting [SOLVED]

    I'm trying to make an animation play after the player's HP runs out and before the player restarts the level. But even though I have an alarm set, the player restarts right after the HP runs out, not giving the animation time to play and bypassing the alarm. Here is the code I'm using. Is there...
  18. matharoo

    GML Delta-Timing (Movement & Alarms)

    GM Version: GMS2 Target Platform: ALL Download: Links: N/A Summary: Delta-timing is used to make sure the game doesn't actually slow down due to low FPS. This tutorial teaches you how to implement delta-timing and also use it with...
  19. P

    Time Between Texts

    Hey, I’m relatively new to GMS and I was wondering how to make a time in between two texts that appear onscreen. Example: “Hello, there!” (Wait three seconds) “Welcome to this test!” I understand I would probably need to use alarms, but I’m not sure how.
  20. G

    Change sprite when walking through obj and then back

    I'm having trouble getting this sprite to start and stop when it should. I was wondering if anyone could help? Basically I've got a window object that, if it's open and I try to walk through it, he jumps through it. The Alarm[0] code resets 'timer' to 0 and sets the trig_jump% vars to false...