K
Korbs
Guest
Hello,
I have two rooms, one is a duplicate of the other with the exact same layers (name and depth), just different contents. The first room has the player (persistent object) in the "Player" layer and the second room has the same "Player" layer without the player object.
I am testing by drawing the layer name beside the player, it shows "Player" on the first room but once i continue to the next room it shows "-1", it remains "-1" if I return to the first room too.
I have looked through forums and seen responses stating that when there is a room change, persistent objects in GMS 2 will set their layer to a layer with the same depth of the one it was originally created on. This doesn't seem to be happening for me.
Anyone have any idea why a persistent object would do this?
Thanks!
I have two rooms, one is a duplicate of the other with the exact same layers (name and depth), just different contents. The first room has the player (persistent object) in the "Player" layer and the second room has the same "Player" layer without the player object.
I am testing by drawing the layer name beside the player, it shows "Player" on the first room but once i continue to the next room it shows "-1", it remains "-1" if I return to the first room too.
I have looked through forums and seen responses stating that when there is a room change, persistent objects in GMS 2 will set their layer to a layer with the same depth of the one it was originally created on. This doesn't seem to be happening for me.
Anyone have any idea why a persistent object would do this?
Thanks!
Last edited by a moderator: