1. J

    SOLVED [drag 'n drop] How to make pause menu appear in center of view

    Hello friends, I am learning how to make a top down adventure and am stuck on the pause menu. I have the game pausing with instances_deactivate_all and everything disappears which is fine. And the object controlling the pausing and menu creation isn't getting deactivated. I've been trying to...
  2. ikonhero

    SOLVED Problem with pause / freeze using surface; image appears stretched.

    Hi, I'm trying to make my game freeze / pause by deactivating all instances from a seperate pause instance. Before deactivating all instances I make a copy of the application surface. After all instances are deactivated I draw this surface in the draw event of the oPause instance. However, the...
  3. 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...
  4. Wainggan

    GMS 2.3+ How to pause Sequences?

    I scoured the gml bible, I meant manual, trying to find some kind of function to pause, but I could only find this Is there some kind of function I can use to pause a sequence, then unpause it?
  5. M

    reactivated instances don't activate

    So in my game when a match ends, you get a statistics screen. At this point i'd like it to work like a pause screen, in that the game freezes the background and then throws you the Stats screen after that. you get always two Statistics screens drawn, since one is for the player and the other...
  6. L

    Text disappears when Pausing

    Hey guys, when I pause the game while the text is still progressing, everything works fine. But when I pause it after the text has finished typing out, it disappears. This happens even when I start the room with textprogress at a really high value and it happens when the text would have finished...
  7. Plubu

    SOLVED Darken an application surface (Pause Menu)?

    Hello everyone, I want to make the pause menu to make the surface behind the pause menu darkened, like most any games you play when you pause them. This is the Pause_Object: //Step if keyboard_check_pressed(vk_escape) { global.ScreenshotSprite =...
  8. zendraw

    GMS 2 Pause game when window out of focus

    my game still runs when window is not on focus, how do i make it so it is paused? like how when you drag the window the game freezes. id like it to freeze when we are out of the window.
  9. RizbIT

    GMS 2 if os_is_paused()

    if you put if os_is_paused() { } In a step event of a persistent object on iOs or Android will that checking every step actually slow the performance down?
  10. M

    weird alpha during pause?

    Hey, so I implemented pause in my game with following codes: obj_pause: Create paused = false; scrn = -1; Alarm 0 scrn = sprite_create_from_surface(application_surface,0,0,surface_get_width(application_surface),surface_get_height(application_surface),0,1,0,0); instance_deactivate_all(true)...
  11. Momfus

    GMS 2 Strange behavior with deactivated objects on pause

    I have a problem that i'm not understand very well...I have two layers: control and hud layer All hud elements and the object that control all the gui elements are childs of parent_guiElement When i pause the game, i deactivate all object excepto the control layer, then when i resume all...
  12. M

    Pausing the game doesn't draw the paused game background

    I'm using the following code to pause the game, it works fine and all, but the one quirk i cant seem to fix is that the while pausing the game takes a screenshot of the screen, it doesnt draw that screenshot to the screen while paused (i want the paused game's background to show behind the...
  13. CrackedGamer§

    GMS 2 What is the best way to pause a game?

    I am making a platformer, what I do is just place a solid object on top of the player to stop them moving and the same for every enemy. And then I use a draw event in my controller object to draw a seethrough rectangle with the different options. What would be the best way to save the game...
  14. P

    GMS 2 How do I pause a tileset's animation?

    I can't believe there isn't just a way of doing this. I mean, what is everybody else doing when they reach this problem? How many games are there that have been made in GMS2 where there are animated tilesets and the game can be paused and still show the game frozen in the background? How are...
  15. D

    GMS 2 Pause and animations

    How to stop sprite animations when in pause? Just animations, and then continue them
  16. O

    Windows How do you pause/wait in a script?

    Want to move an object to a certain coordinates, wait for say 100ms then move to another coordinates, wait again for 100ms, but it seems building a pause function is not so simple and I would prefer not to use alarms if possible please?
  17. V

    Xbox One version of window_has_focus()?

    I'm creating a game on the Xbox One using UWP. I'm trying to get the correct behavior when the player presses the Home button - when the overlay comes up, gameplay should pause. But I can't detect when the overlay comes up. I can't detect if the player presses the Home button because that's...
  18. Fixer90

    GMS 2 Delay in Event Code?

    Is there a way, other than using Alarms, to make a delay in an event? For example, if I had my own "scr_wait" function to do this, I could use it in the Create event of an object like so: variable = 1; scr_wait(2); variable = 2; scr_wait(4); variable = 3; What this would do is make it such that...
  19. Edwin

    Legacy GM How to pause all audio sounds if game freezes?

    Hello, GameMakers. If you hold the window of the game, it will freeze, but somewhy the sound won't. There is an extension that creates its own window instead of default but it's not an option. Is there any extension or other way to pause the sounds if the game freeze? That would be very...
  20. Retron84

    GML using instance_id[i] inside variable_instance_exists

    I'm trying to loop through my game and pause anything that can be paused without setting a pause variable for every object (since many won't need it). However, obj_system which handles the pause function, among others, keeps throwing an error saying paused has not been defined. What am I...