Having a major issue with changing a layout on a platform based game.
I'm going to describe the problem as best I can as I am unable to upload the capx and I have been unable to repeat the problem in a new project so please bear with me.
The player is set to a basic Platform behaviour with custom key movement.
Layout 1 properties
Global Variables
PlayerX - 40
PlayerY - 4000
- Start of Layout - Set player position to (PlayerX, PlayerY)
- End of Layout - Set Global Variable to players current position
Layout 2 properties
Global Variables
NumberFall = 3
- Start of Layout - Set player position to (60, 3000)
- End of Layout - Set NumberFall = 3
Player is outside layout
Numberfall is > 3 Set player position to (60, 3000)
Numberfall = 3 - Change to Layout 1
On the 2nd layout if the player falls outside of the layout then the player is set back to 60, 3000
After the 3rd fall the player is sent back to Layout 1
When the player re-clicks the link to return to the second layout the Player is being moved to the co-ords of 600, 600 and after it lands destroying itself.
No where in my code is that set to happen.
I really hope I've done enough to get some idea's from other people on how to solve this as I'm stumped.
Sorry again for not being able to upload a bugged capx for people to look at.