timer

  1. KyleRansford

    GMS 2 Real Time Stop Watch

    How can I make a Stop Watch that counts up in real time seconds? One of the games I'm working on has a Boss mode that I'd like to time how long it takes the player to defeat all bosses to uploaded to a leaderboard. Currently I have this setup but, I don't think it's actual real time. //Macros...
  2. P

    Windows Problem with enemy spawn

    I try to do a functional spawn of enemies using a timer, everything works, however, a bug happens where the sprite of my player and the enemy appears continuously, even if I didn't put this in the code var enemy = instance_create_depth(irandom_range(48,442), 0, 1, obj_enemy); enemy.sprite_index...
  3. P

    Making Enemy Shoot at Player

    Hi. I'm using Drag and Drop and am new to coding so I'm having some trouble with this. I've created an enemy called obj_enemy_dropper that that bounces off walls. I've tried looking through tons of threads and watch countless videos but I can't seem to find out how to make the bullet shoot at...
  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. If Programable_Matter

    Timer of my Program not up to par with Normal Timers

    I'm developing a program which requires a timer. However the timer is too slow vs other actual timers. The veracity of the timer is critical to the program I'm developing. It tends to be slower than other timers from other devices. I believe this is attributed to the amount of memory my program...
  6. DromEd

    GMS 2 [Solved] A timer to continue even when the conditions don't meet anymore ?

    Hello the Game Maker community. A short introducing before exmplaining my problem : I am a new user from France (excuse the not great english please) and I enjoy spending time on Game Maker :) I searched for the following problems on the forum and Google, but I could not solve it. I would like...
  7. PlayerOne

    GMS 2 Contdown 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...
  8. Aardvark

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

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

    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...
  11. 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...
  12. 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...
  13. B

    GMS 2 [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...
  14. 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...
  15. 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...
  16. 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...
  17. N

    Drag And Drop 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
  18. R

    GMS 2 [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...
  19. N

    Drag And Drop 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
  20. W

    Drag And Drop 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...
Top