• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

alarm

  1. Izac

    GML How can i set an alarm to frame?

    Help me please.
  2. B

    Need help with alarm and row system.

    I know this isn't the best way of doing this but, I need help creating a system where after 2 seconds it creates a row of blocks and after another two seconds it does it again and moves the previous row down and repeats for infinity. I can't get the alarm to run but when I do get it to run, it...
  3. joshuakiryu

    Alternative to room_speed for alarms?

    I currently have an alarm running on room_speed, I've noticed since updating usage for it is now discouraged, are there any particular alternatives for it? here's how i am currently using it: alarm[0] = room_speed/2; haven't posted anything on here before so apologies if I'm posting anything...
  4. V

    GameMaker Alarm/Timer System

    Hello I use DND (excecute code also works) and I want to make it so a certain room has a timer, so when you enter that room it lasts a certain time. Specifically I wanted to make a title sequence, So the games title comes up for a few seconds and then it moves to the next room. (the title isnt...
  5. C

    SOLVED timer is not decreasing

    edit:Thanks guys it works now i was just setting the timer var in step event so i stayed 60 every second and only decreased for 1 time i put the timer var in create event and now it works Hello! I am making a enemy which has two states. 1 for means attacking the player and the player can't hit...
  6. M

    Repeat an action for 2 seconds

    Hi, I want my character to switch its image_alpha from 1 to 0.4, for 2 seconds, and then go back to normal. I do that with an alarm that lasts 2 seconds, which is good, but now I want the player to constantly switch its image_alpha from 1 to 0.4 and from 0.4 to 1 multiple times for 2 seconds...
  7. R

    SOLVED variable returning absurd value

    Hello everyone, I have a problem with a variable that is returning absurd values and I don't know why. It all started when I was fixing my variables, making them more editable and easier (print below to understand better): when I went to fix the alarm code for one of my objects, I noticed that...
  8. C

    Making A Music Timer

    Hello! I'm making a game (a noob at the beginning of his programming journey). I'm trying to make the Game Over screen appear if the player doesn't finish the maze before the song is over. In my music Object I created this Room Start event: audio_play_sound(it_takes_a_hero, 1000, false); if...
  9. D

    SOLVED Alarm Problem

    I have a problem with using an alarm from a separate object. Here is the calling code: if !instance_exists(obj_timer) { instance_create_layer(x, y, "Instances", obj_timer); } else { obj_timer.alarm[0] = 120; // obj_timer.alarmActive = true; if obj_timer.setOff == true {...
  10. E

    Fire delay alarm

    I have an enemy that moves or shoots based on distance to the player. After looking at lots of different tutorials I've just become confused and am not really sure how I should be using this alarm because the if just seems to ignore it. I also think it could be to do with how I'm using my...
  11. TheRealMrSketch

    GML Alarms not working?

    I want to create an upgrade system for a clicking game I am making and I want a game object to spawn in when I reach a certain Prestige. When they spawn in, they are supposed to give me more points for a varying amount of seconds. I set up an alarm that would also trigger at a varying time. The...
  12. F

    Alarms inside functions

    Is there any way to set an alarm from inside a function? I want to put some random delay to create an instance from inside a script function, but I couldn't figure out how to.
  13. D

    GameMaker Alarm Problems

    Hello all. I have been coding for a few months but have just discovered alarms. I started simple with a "if space bar clicked, set alarm 0 countdown 5 seconds." then in the alarm 0 tab, go to next room. But what happened was that when i clicked spaced it instantly went to the next room. I tried...
  14. R

    SOLVED Timer not working?

    I've tried to create a countdown timer for my game, but for some reason it doesn't seem to be working/displaying on screen. Could someone tell me what I've done wrong and how I could fix it please?
  15. Q

    SOLVED Can't get alarm to work when player is still

    Hello. :) I'm trying to make a textbox pop up when my player has been still for a little while. I've tried this a few ways, using the GMS2 alarms and writing our own alarm code but even the debug message isn't working. I have an obj called objPlayerPopups and in its STEP we have //make standing...
  16. ribbyte

    Asset - Scripts Say goodbye to ugly alarm solutions - literally write "execute in 2 seconds" or "execute every 10 frames" with this asset

    With our asset, this is now valid Game Maker code: That's what I literally wrote as code to make an image spin. Also, let's say your player is attacked and you want him to be invincible for one second - this is how you do it with our asset: Previously, you had a number of options, most of...
  17. samspade

    Various Types of Alarms and Other Things

    GM Version: All (except for System Alarms, which is 2.3 only) Target Platform: All Download: Struct Alarms Github Repo Links: YouTube Playlist Summary: A GML tutorial series on various ways to implement alarms in GMS 2.3 from using built-in alarms to creating alarms with structs, a discussion...
  18. P

    Switch Getting Ignored

    I've simplified it, but it's basically what I am trying to do. When a user presses a key it changes the state to idle and command to stop. Step Event switch(state) { case "idle": if (command == "go") { // do stuff } else if (command == "stop") {...
  19. Z

    Sliding Door Issue

    Lately I have been having issues with implementing a sliding door mechanic I checked the code and it looked bulletproof but yet when put into practice it does not work. in the Create_Event I added a variable "stop = false;." and a Alarm function that sets that sets the stop variable to true...
  20. Wonsubon

    SOLVED Changing Alarm Values

    I've been rather confused about the values of alarms. The docs weren't too clear from what I read from them either, so I ask is it possible to increase, decrease, multiply, and/or divide the value of an alarm after it has been set? Here's an example of what I mean by this: // In the create event...
Top