Jump to content

How do you implement "door-to-door" level design in phaser?


kriket
 Share

Recommended Posts

What I mean is, say the level as a whole is big but when you enter a door at the bottom of the screen, instead of the camera following you and the rest of the level coming into view, I want to sort of start from the beginning, as if the door lead to another level and the player is at the top of the screen and we see the remaining level. 

Link to comment
Share on other sites

This is known as 'flip screen'. You'll need to reposition the player to the new location (ensure camera follow is disabled when doing that), then reposition the camera as well, then re-enable follow if you need it. As long as the coordinates given are correct it will appear as if they've just moved from place A to place B.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...