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

persistent

  1. prtksxna

    How to destroy previously persistent rooms?

    Hey, The way I have things set up in my game I use persistent rooms to keep the "main room" be persistent and then load up "puzzle rooms" on top of it. If I want to add a "Return to Main Menu" functionality from the puzzle rooms, I'll need destroy the "main room" and unset as persistent. I...
  2. David Lorenz

    SOLVED How to save a room's objects without overwriting the save data and losing objects saved in other rooms?

    Hello, everyone! I want to save and load the variables of some objects, but when I change room and come back, the save data gets overwritten with the data from the other room and vice versa. I really tried to find a solution, but nothing that I tried worked and I'm starting to feel consumed...
  3. J

    GML Persistent Player Freezing (HELP)

    Hello! I'm working on my first major game and I have encountered a problem where I myself am very unsure what to do. To make my player able to re-enter previous rooms, which forces me to make my player persistent. By doing that my "enemy" and "checkpoint" code arent working properly. When...
  4. W

    Windows [Help] Global persistent instance across rooms (not Object , but only particular instance of same object)

    Hi Guys, I tried to create persistent instance from certain object and store it in global variables, so that i can access it across rooms. I deactivated the instance each time i created it. So when i changed room, looks like i'm facing issue to find the instance. Here the snippet of the code...
  5. F

    Legacy GM [SOLVED] Resetting persistent rooms from other rooms

    My game has multiple persistent rooms that should maintain their states until the player returns to the main menu. However, I've been having trouble finding a way to reset all those rooms without actually going to each one and restarting it from within, which feels overly complicated and hacky...
  6. L

    GML [SOLVED] Pseudo Room Problem - Space Game

    Hello all, this is my first post so apologies if this is in the wrong place or badly formatted. In my game, you fly a spaceship. This spaceship has multiple levels, but the ship as a whole stays in the same room (so your position in space and other objects in space don't change). I have sprites...
  7. D

    GameMaker How to have a character move between rooms without persistent?

    Hi, So, I've been struggling with this, and I was wondering if there's a way to have the player move between rooms without using the persistent variable? The reason I was wondering about this is because I don't want the player to appear in the battles, which features enemies in a head-on view...
  8. R

    GameMaker Position of player after room_goto()

    Hello again, Still fairly new in Game Maker, and still going trough Shaun Spalding's excellent platformer tutorial for GMS2, while trying to add my own touch for small details. This time I am struggling with room transitions (tutorial number 7 on YouTube). I am trying to add more params to the...
  9. S

    GML Any way to prevent an object from being persistent in a room?

    Hi, I would like to know if there is any way to make an object persistent in one room and in another not by script? already try with some codes, but they do not give me result :(, I would appreciate your help. By the way, I use GameMaker Studio 1.4
  10. W

    Legacy GM Variables resetting[Solved]

    I've been trying to solve this for the last week and I've tried literally everything I can think of. Looking at the variable's state in the debugger, using a message to show if I'm making an object duplicate, removing the code that says to reset the value to false. Nothing is fixing it and I...
  11. P

    Windows Persistent rooms memory leak

    Hi, I've noticed that when changing between rooms, if either room is persistent then memory use will increase slightly. It goes up between 10 and 30 kb with each transition and never ever goes down. this might not seem a lot, but when you have a game where the player will be moving back and...
  12. Coded Games

    Persistent rooms change object depth

    So one thing I just noticed is that if I switch away from a persistent room and then switch back to it the depth of some objects get changed. You can see this happening in this video: https://gyazo.com/d92e7fe0d38b8de2fd73c0b36e664508 Do you guys think this is a bug or should I just accept that...
  13. P

    GameMaker Help with Persistent room

    So i'm having a HUGE little problem. Seems that when I check my room as persistent it "COPIES" some instances of the previous room into the new one. For example: I put some solid blocks in persistent room0. I warp into persisent room1 and that solid blocks seems to have been copied in the exact...
  14. C

    Objects that hold value dont stay the same when I switch rooms

    Objects that hold value dont stay the same when I switch rooms. So when I move between two rooms, objects like ammo and health dont stay the same when I switch between two rooms. I have already tried persistent for the object but it only keeps the score value the same and resets the other. Pls help.
  15. N

    Hide player in menu screen

    I am making a text based game where my player is persistent and i have a UI setting that makes the player go back to main menu but since its persistent it ends up on the main screen too, i have tried deactivating it but it wont activate when i load the game and my player disappears i also tried...
  16. M

    Game starts acting really weird with one room - instance Events don't play again, etc.

    I've made into my game a reaction minigame (fight system), where there's the player object, and the enemy object in the room. Note: NONE of the objects, or the room itself, are persistent. Still, if the player loses and the room restarts, it goes all weird; the instances don't perform their...
  17. M

    Need Help With Ant Colony Game

    I have recently begun working on an Ant Colony RTS game on GameMaker 8 which I have a ton of ideas for (though am open to new suggestions). I have a bunch of minor things done but still need a bit more help with it. One of the biggest things that is troubling me right now is that I am unable to...
  18. M

    Legacy GM detecting objects in seperate rooms?

    I'm wanting to check and see if there is an object already at a (x,y) position. Is there a way to do this when in a different room? I can provide some of my code to help with the context if need be/if asked but I don't see the necessity in that. Would it be more effective to use a global...
  19. M

    Legacy GM (SOLVED-thanks thijs)objects only wanting to move to one room but same code for all 4

    I have 4 rooms with objects in all four rooms. I am only able to move an object to room 1 then I can move the object back to the room it came from but no other. I have keys 1,2,3,and 4 set up to go to there respected room#(rm_layer#) when the variable global.currentlyselected=0 for testing...
  20. B

    I need my character to come on screen every 5 minutes.

    Hey guys, I am designing a point & click interface program, It is currently mostly built with drag & drop functions, but I wouldn't mind using some codes if it's necessary, it's fixed where users can flip through it and read a lot of information. Every 5 minutes, I want my character to run...
Top