persistence

  1. B

    SOLVED Help with issue related to persistence and event ordering

    I have an issue that I believe may be due to the ordering of events, but am not sure. The game I’m working on has the player moving through various rooms, and depending on which door the player enters the room from, where they spawn in that room will change. All the rooms are persistent, and the...
  2. Z

    GMS 2.3+ NPC background process: room transitions

    Hi everyone, I'm currently trying to create an NPC system, in which NPC's have a simple path setup, but it turns out to not be as simple as I thought. What I want to do is: have a non-persistent OR persistent NPC walk along a certain path, and be able to move between rooms. The player can talk...
  3. Papa Doge

    GMS 2 Planning: Maintaining surface world when entering a dungeon

    Hello, I'm at a critical point in my game's development where I'm starting to get into scaling and performance issues. I've coded myself into a hole so to speak with some previous features that resulted in costly refactors. To learn from my mistakes, I'd like to do better planning before I work...
  4. A

    GMS 2 A question about persistence

    Hi everyone, this is the first time I post something in the forums and I'm very new to GML (but not to programming). I have a few questions about persistence and what would be the best approach. I'm making a metroidvania (I know it's not the best idea for a first game) and my first idea was to...
  5. P

    Objects deleting after room switch despite persistence? GM:S 2

    Hello! The title is basically the crux of the issue. In a particular project, I have a player object (set to persistent) that, when touching a door object, should teleport to the next room to specific coordinates. However, after I switch rooms, the player object is destroyed even though I have...
  6. Guitarmike

    Object persistence in first room

    Hi, I have an obj_music_controller that has the following code: CREATE: music = true; show_debug_message("creating music controller. we have "+ string(instance_number(obj_music_controller))+" instances."); ALARM[0]: if !music exit; var song =...
  7. W

    Persistent Room, Cannot Control Player Character

    So I am currently making a survival-horror styled game and I do not want my enemies to reset every single time I reenter a room. Seems like the obvious choice would be to make the rooms persistent, but for some reason, all control of my player is lost upon reentering a persistent room. Anyone...
  8. axialgentleman

    Newbie question: Best way to store state for off-screen objects

    I'm new to GameMaker and very excited! For my first little project, I'm creating a classic first-person escape-the-room game. The room has four "walls" -- four separate screens that the player can switch back and forth between at will, manipulating objects and solving puzzles. I'm trying to get...
  9. C

    GMS 2 Previous room does not correctly contain objects (SOLVED)

    I'm coming back to an unsolved previous issue that keeps bugging me. (Beginner, GML). In my game the user is supposed always to be able to go back one room. When he does, the two objects will not really be in that room. They only seem to be (at least if I set their depth to -1000), but: - their...
  10. remka

    GMS 2 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...
  11. FactorX12

    How do you change the persistence of an object back to false?

    So, I am making a game and I want to be able to toggle persistence of an object whenever the person presses "E". When you press E, the way I have it, it doesn't even set it to persistent the first time. Then, you do it again, and it sets persistent, but once it's set persistent it doesn't set...
  12. M

    HTML5 Issue w/ room_persistent...works with macOS not HTML5

    My game uses object collisions to move from one room to another. When my player collides with a door it is given new coordinates and room information saved in the door's creation code. The collision also creates an object that controls the room's transition (a rectangle that fades in and out)...
  13. P

    GMS 2 How do I have multiple doors in one room that allow backandfourth travel?

    Currently, my character can go through a transition space when I'm standing over it and hit w, then I'm in a new room. But, when I want to head back to the first room my character, starts back at the starting position and not where he would in real life at the door he went through to get into...
  14. P

    Problem with room persistence.

    I use creation code in the rooms to change levels: Example: global.room_left = room1b; global.room_up = room1_3c; global.room_down = room1_3a; global.room_right = room1_4a; etc. However, when I set a room to "Persistent" the changing of rooms gets wonkie, meaning, it no longer follows my...
  15. B

    Any Ideas to possibly toggle player persitence?

    I'm not sure what specifics I need to share but here's my situation: Whenever the player dies from an enemy collision the room restarts, but the player doesn't reset because its a persistent object. However, I don't want to simply disable it (the persistence) because I have a door that when...
  16. Q

    Persistent? Yes or No?

    Hey, I posted a question some weeks ago: "I have a question, it's about my inventory system. I just want to make another room for the inventory and everytime when I press "E" then it should change to the inventory and pause the game. And when I press "E" again then it should go back to the...
  17. M

    Windows persist objects

    hey all i have got a problem with gamemaker studio 1.4.....i have set some persist objects .in first room all are fine but at the next room all the persist objects setted to the previous room are behind the objects of the room .
  18. S

    Legacy GM Room persistence for all rooms?

    Hello there, I have a question related to room persistence. As I understand it if a room is set to persistent upon leaving the room it's current state will be stored in the ram (with the exception of persistent objects ofc) so my question is, is there any way to flush this data out of the ram...
  19. Ariak

    Discussion Persistent Object Inconsistencies

    Hey, did anybody else run into any problems with persistent objects switching rooms? In my levels I have several objects that in their create event reference my persistent controller object "cont_main". In GMS1.4x i had no issues whatsoever. The persistent object was guaranteed to be the first...
  20. N

    Question - Code Persistent object invisible after room change

    Not sure if this is a bug or I'm doing something wrong. I have a game with 2 rooms and a persistent player object. When the player object in room0 collides with a room change object the game loads room1 and the camera moves around as if it's following the player at the exact point it would be...
Top