alarms

  1. 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...
  2. 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...
  3. 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
  4. 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...
  5. 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...
  6. 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...
  7. 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
  8. 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...
  9. D

    Alarms/Countdown

    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?
  10. 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
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. matharoo

    GML Delta-Timing (Movement & Alarms)

    GM Version: GMS2 Target Platform: ALL Download: https://www.dropbox.com/s/6ntwlhiqkfoqiah/delta-timing.yyz?dl=0 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...
  17. 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.
  18. 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...
  19. S

    GMS 2 [SOLVED] GML Alarm events (I think)

    So I'm VERY new to GM and coding in general (unless you count a strange enjoyment in making excel spreadsheets ;)) I downloaded the trial to play with the DnD but quickly figured out that it was going to be less complicated in the long run to learn the code. Forgive me if I give a little too...
  20. CodeCabbage

    [Solved] How to Change movement speed and return to default?

    Hi, Good day! scenario: obj_player collides with obj_slow intended effect: destroy obj_slow, then reduce obj_player move speed and return to normal(default set) move speed after about 3 sec. i have set obj_player move speed to 2 in the create event. i want to set an alarm in which it will...
Top