• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - GML Visual Issue with collisions and room persistence

T

Tetragon

Guest
I'm teaching a class and I've got an issue with a student's project. We're using room persistence because he's making an RPG, however re-entering rooms breaks all collision checks. I'm too new to this forum to post a link to the project and I need an answer quick. I may just be misunderstanding room persistence.

We're using version 2.1.4.212

To replicate:
Create an empty DnD project
Create two objects, one wall and one ball
Set ball direction to up
Add collision event to ball that flips direction
Make two keys to switch between two levels
Put walls in both levels to stop the ball from leaving


Play the game
Balls will bounce as expected
Switch rooms
Switch back
Balls will bounce as expected

Turn persistence on in both rooms
Play the game
Switch rooms
Switch back
Balls will escape the rooms
 
Top