pause event

  1. gammis

    SOLVED conditional timer not stopping

    Hi. I'm trying to implement a timer that will stop on player death, this is the code so far: //Run time global.speedrun_timer += delta_time / 1000000; // if object_exists(oPlayer) { var time_sec = floor(global.speedrun_timer); var time_csec = floor(global.speedrun_timer * 100); } else { var...
  2. Reddoka

    SOLVED I can't pause my game

    I've been trying to work with the paused game part but I can't find anything that's keeping it from working. I set a PlayerStateFree script like this but I don't really need another statement now, so I skipped to the pausing part, I dont know if the problem relates to the script or not. Also...
  3. S

    GameMaker An improved spcare rocks. HELP!

    I recently finished the game rocks 3-part tutorial and now im adding whatever i want. Ireally need some help on implementing 3 powerups: - A shotgun that always shoots 3 bullets for 15 seconds; - A fast gun that works as a normal keboard_check as opposed to keyboard_check_pressed (i dont know...
  4. D1Project

    Android Save on closing or losing focus of the game

    Hello, I'm trying to save the player's game right before the game is closed or has lost focus (pressing the home button for example). What is the event I should use to save my JSON? I saw you can use os_is_paused() on the step event, but it is only triggered when the player resume the game...
  5. E

    Legacy GM Need help disabling certain code in certain room

    hey yall, I have a pause menu in my player stats object but I do not want to be able to pause the game in four rooms throughout the whole game. I have tried fixing this bug but it seems to do nothing. code is down below in the step event any help helps. thanks! PS i do not want the pause event...
  6. G

    GameMaker RTS: Pausing and giving orders to units

    First and foremost: thanks for reading this! Second, what I want to do: I'm building an top-down RTS where you can pause time AND still being able to give orders to your units. Something like 'Kenshi' (the game, not the Mortal Kombat character). The idea is to 'freeze' time (no movement for...
  7. J

    Legacy GM Pausing audio on losing window focus (Windows)

    Hi everyone, I would like to pause my game's background music once the user makes the window inactive, and resume it when it gets focus again. I've tried using the os_is_paused() function, but it seems that only returns true for the following single frame. So i was wondering, is there any way...
  8. D

    Legacy GM Pause event has been registered for this frame

    Anyone know how to get rid of this debug message? Pause event has been registered for this frame It makes debugging really hard when you get 60 of those per second while an ad is being displayed. It appeared a few GMS versions ago.. actually it had been there a long time ago, then...
Top