pause

  1. T

    GameMaker Problem when pausing the game

    Hi everyone I have a slight issue when it comes to pausing and unpausing the game. I use this code to pause and unpause my game (the code is from Shaun Spalding's tutorial): if (keyboard_check_pressed(vk_escape)) && (room != rMenu) && (room != rQuote) && (!instance_exists(oPDead)) { if...
  2. J

    GML [SOLVED-partly] How to Pause Physics Heavy Game?

    How can I Pause a Physics Heavy Game? Basically every object has Physics so I can't use instance_deactivate_all and I tried phy_active but sometimes specific objects wouldn't unfreeze. I'd prefer you to be able to see the object. And also if it does Pause everything, how can I unpause it without...
  3. Deadly Serious Media

    GML How do I pause all particle instances with part_system_automatic_update()

    Hi, Picked up an old game prototype and have been poking around at expanding it. I have these lasers. They are drawn like this: //draw draw_self(); if global.timer<100{ if on=1{ draw_laser(laserWidth, $E510ED); } } //draw_laser(); ///@description draw_laser(width, color)...
  4. P

    How can I make the pause screen work in a Defender-like level?

    Here's a problem I encountered in the SHMUP I'm working on due to making a level that's totally different from the other ones I made before. In my other levels, the view was stationary and various objects and enemies would move from one side of the screen to another. Now I want to make a level...
  5. P

    I have an enemy stuck in a position after pausing. What should I do?

    I'm working on a horizontally-scrolling shmup, and I'm having an issue with one of my enemy objects, as you can see in the title. It happens to a group of enemies that moves in a typical wave formation, where they move up and down. Sometimes when I pause the game at the point where enemies reach...
  6. 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...
  7. 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...
  8. 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...
  9. Wainggan

    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?
  10. 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...
  11. 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...
  12. 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 =...
  13. Z

    GameMaker 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.
  14. RizbIT

    GameMaker 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?
  15. 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)...
  16. Momfus

    GameMaker 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...
  17. 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...
  18. C

    GameMaker 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...
  19. P

    GameMaker 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...
  20. D

    GameMaker Pause and animations

    How to stop sprite animations when in pause? Just animations, and then continue them
Top