alarms

  1. Starrbar

    SOLVED Textbox visual and sound delay doesn't seem set up properly

    EDIT 2-1-24: I got so fed up that I'm trying Scribble instead. It's honestly perfect, I just need to confirm that I'm able to hook it up to my dialogue piles. I'll mark this as solved and move on as soon as I confirm that, but it's already looking miles better. EDIT 2-3-24: I think it's safe...
  2. RizbIT

    GameMaker fps and fps real

    This might seem a bit novice but im trying to understand the game speed and fps. I use these to set alarms in seconds. In my understanding: alarm[0] = game_get_speed(gamespeed_fps); would set the alarm to more or less 1 seconds, but is this correct? and if I wanted to set the alarm to...
  3. H

    GameMaker Timers/Alarms, Switches or Global Variables not working (no error messages)

    I'm incredibly inexperienced with Gamemaker - the code I've used is cobbled together from tutorials and the like. I don't know what could be wrong. In the game I'm making, the player is moving into a haunted house. A ghost doesn't want them to so they're throwing furniture at them. I'm trying...
  4. J

    Alarm to go to next room index after dialog is completed

    version: IDE v2023.1.0.58 Runtime v2023.6.0.139 Hi all, I just completed this tutorial on youtube that focuses on dialog - it works great however, I would like to set an alarm to go to the next room once the dialog completes. There is a parent and a child object - i edited the child object...
  5. M

    SOLVED changing amount of ticks on alarm breaks code?

    So, I've set an alarm which changes the room: Alarm 1: room_goto(Shooting1) But this alarm only works if Alarm[1] = 1, and not for alarm[1] = 10. This is the code which triggers the alarm Step: if (opened = true) { sprite_index = sprPriedCar alarm[1] = 1; } "Opened" becomes true...
  6. S

    Alarm not working

    Hi, so I couldn't figure out how to make it so that when the player kills an enemy, the exp the player gets goes up one at a time. I tried using a timer but it doesn't work for some reason. here is what is in the step event. if hp <= 0 { with instance_create_layer(x,y,layer,oDead) {...
  7. xDGameStudios

    [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...
  8. otterZ

    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...
  9. samspade

    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...
  10. A

    GameMaker 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...
  11. 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
  12. Shavv

    GameMaker 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...
  13. Daniel Mallett

    GameMaker 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...
  14. K

    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...
  15. 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
  16. 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...
  17. 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?
  18. A

    Question - GML Visual 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
  19. 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...
  20. 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...
Top