Hi All,
It seems I run into a lot of problems lately with my labyrinth game. So I do apologize for bothering this helpful community again.
I have two layouts named "L1" and "L2". I also have a global player (sprPlayer) and an "exit" sprite (sprExit) with an instance variable "strDestiny".
In "L1" the value of sprExit.strDestiny is "L2". So on collision with sprPlayer, the "L2" layout is shown and the player should wait in the opening on the left.
sprPlayer has the "Tilemovement" behaviour and the grid is 48x48.
The problem is that once layout "L2" is visible, the player moves without any keypress to the far right of the layout. This is wrong because he needs to wait in the opening at the left until the player presses one of the arrow keys.
I created a movie of the wrong behaviour of my game together with screen captures at the end of the event sheets and sprExit and sprPlayer properties. Here is the link where you can watch the video:
drive.google.com/file/d/1Qqbk8J9x-CxVE2V7g9vofBhvZKzTSLmA/view
Please, can you tell me what is wrong and how I can correct it?
Thank you so much for your help which I do appreciate.
Kind Regards,
Chris