How would you set up an event so that if you fall through a pit in a floor you fall through to a room if there is one below? I have my layouts transitioning fine from left to right, but I'm having a hard time setting it up so that if I fall through the floor it gets the appropriate room and drops you in.
Create a sprite that when the player touches it take them to the correct layout. Put that sprite in the pit that the player falls through, when they hit it call the go to layout method.
Develop games in your browser. Powerful, performant & highly capable.
The player should also start in the position of the pit in the next layout.
Thanks for the suggestions I will try that out.
Question: What is the best way to store your coordinates?