• 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!

timer

  1. PlayerOne

    GameMaker Countdown Timer && Count-Up Timer [GMS2]

    GM Version: GMS2 (Unconfirmed on 1.4) Download [GMS2]: https://drive.google.com/open?id=1xzRCMqFHCJbRk985W4ggXQzSHiSCljeF Version: 1.0 Description: This is how to make a countdown and count-up timer for your game(s). What is needed to proceed: -Knowledge of GML. To start we will...
  2. A

    GML [SOLVED] Draw tile set after player being idle for specific time

    Hi! I'm fairly new to GMS 2 and GML but I'm a quick learner. I've set-up basic animations for my player based on the direction it's going (8 directions). What I'd like to do is start a frame by frame animation from a given tile set after the player is idle for let's say 5 seconds. Here is...
  3. N

    How do I add Time to my Timer Countdown?

    I have a Timer in my game that counts from 60 to 0. But I have an object in my game that has to add 10 seconds to the timer and make it possible to win the map. But i always changed the room_speed id i collect that item. That made the game work slower, but the 10 secs were add to the timer...
  4. T

    Windows How to make a game see if another program is active?

    I was thinking of making a stopwatch which will automatically activate when it sees chosen programs being active, and when these programs are not active, stopwatch will stop itself. End product basically will stop me procrastinating. I will add some judging GUI elements to make me continue on...
  5. M

    Self dependent "Var" timer in scripts

    Hello again everybody, Quick question, Is it possible to make a self dependent script with a timer built in using local vars? I am attempting to draw sprites WITHOUT creating objects, and to animate them just once and disappear. For some reason I am having a lot of problems doing this. Any...
  6. Pfap

    [SOLVED]count down timer

    The below code is good to copy and paste into one object and when placed in a room will run. I'm hoping somebody could review my code and hopefully tell me where I'm going wrong or just being stupid and then point me in the right direction. I'm trying to make a count down timer that rolls the...
  7. brinycann0nade

    GameMaker [Solved] Timer for one frame of animation

    I made a character that thrusts his sword. He has two frames of animation. A charge (frame 0), and then a stab(frame 1). The charge frame is shown when you hold down the X button on the PS4 controller. The stab is shown when you let go. I want the stab to be displayed longer than just one frame...
  8. N

    Windows Invisible timer

    [SOLVED] I'm making a timer countdown for my game but for some reason I cannot see it in the game. I'm using this code in my timer's draw event draw_set_halign(fa_middle); draw_set_valign(fa_middle); draw_set_color(c_red); draw_text(room_width/2,room_height/2,string(global.timer)); I solved...
  9. T

    Global clock issues

    Hy there, I am working on a new game. And you know what that means right? New obstacles! I've encountered a problem that my clock doesn't get updated when the rooms change. Let me further explain: I have a clock in my one of my rooms. it updates every second when I am in the room. I also have...
  10. A

    On keypress wait random time and execute code

    Hi there, I'm fairly new to Gamemaker 2, so go easy on me. I have a game where a stick of dynamite is placed on keypress Q - i want to wait for a random interval between 3-6 seconds and then execute my destroy_instance() code. I have tried using alarms without much luck. Any help would be...
  11. N

    GML Visual Setting a timer / countdown?

    Hey there! I need to create a timer / countdown in two different rooms / levels, so that your time to finish the maze is limited. If the time is up I want the player to respawn at the beginning... Please help me achieving this with Drag and Drop, I reaaally need your help
  12. R

    GameMaker [SOLVED] How do you make a wait timer between each line of code?

    I am working on an RPG with a rhythm type battle system. It would be very useful if someone knew how to write a script that would add a wait timer between a line of code without unnecessary if statements. For example: I want to be able to write something like this...
  13. N

    GML Visual Setting a timer / countdown in 2 different rooms?

    Hey there! I'm a total noob and need to create a timer / countdown in two different rooms / levels, so that your time to finish the maze is limited. If the time is up I want the player to respawn at the beginning... Please help me achieving this with Drag and Drop
  14. W

    GML Visual Change Frames to seconds [HELP]

    So im making a game simmilar to hotline miami and i have a super atack like in cuphead but i wanted to show how much time its left to next super atack and all it shows is frames per second so 30 frames is 1 second and how to do this to show Seconds instead of frames. Ask me any questions if you...
  15. D

    [Need Help] Setting a best time on title screen

    Hi all, I have hunted around for a solution to this and tried a bunch of different approaches but nothing seems to work. I am trying to get my game to display the time a player survived on the title screen. When the player hits enter on the "title_rm" the game starts, the timer starts, when...
  16. Pfap

    [SOLVED]visual timer hourglass

    Ok, I've been struggling with this for a few hours. I want to draw a visual timer on screen as an hour glass. I have one sprite which is an empty hourglass and is the sprite of my hourglass object. Then I have a second sprite which is double the sand needed of the hourglass. (Think of a pyramid...
  17. A

    clock/timer?

    hello, i looked everywhere for something similar to what i am looking for, but all i found was a timer that goes by real time. in the game im making, you have 10 days to do what has to be done, and each day is 5 minutes real time. i did the math for timing but i dont know how to code it in. each...
  18. N

    [SOLVED]How to make a timer that counts down after you end your game

    Hi, Please does anyone know how I can create a timer that counts down even after I close the game? I've gone through this https://docs.yoyogames.com/source/dadiospice/002_reference/date%20and%20time/index.html Please what I need is a code. I've been on this for days . Thank you.
  19. Pfap

    timer (the "right" way)

    [SOLVED] In the create event: counter = 180; Basically setting a timer for 3 minutes. In the step event: if counter != 0{ counter -= 1; } else{ show_debug_message("game over"); //then destroy the instance } In the draw event: draw_text(x,y,floor(string(counter))); Is it fine...
  20. N

    Legacy GM [Solved]Alarm Repeating itself without adding a life

    Good evening, Please I need help with this. I have gotten alarms to work in the past but I can't seem to get this one to work. I am trying to create a count down timer that counts to zero and awards the player a life at the end then it counts down again and rewards the player another life at...
Top