P
Pafbar
Guest
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 it set to persistent. The floor and exit door instances appear, but they were deliberately placed in the room editor.
Also, when the player object is destroyed, somehow it can still move and collide??? If I move backwards and touch the exit door (I am assuming that's what's happening, because I can't see the player object), the room switches back and the player object is fully visible once again. It was working fine yesterday! The biggest changes I have made to my system since yesterday are some changes in sprite masks and combining two rooms. Thanks to anyone who responds- I'm frustratingly new at this program.
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 it set to persistent. The floor and exit door instances appear, but they were deliberately placed in the room editor.
Also, when the player object is destroyed, somehow it can still move and collide??? If I move backwards and touch the exit door (I am assuming that's what's happening, because I can't see the player object), the room switches back and the player object is fully visible once again. It was working fine yesterday! The biggest changes I have made to my system since yesterday are some changes in sprite masks and combining two rooms. Thanks to anyone who responds- I'm frustratingly new at this program.