Jump to content

How do I make it so when the player hits the door(Sprite) the next level starts?


Kir13y
 Share

Recommended Posts

I have a game that I am working on and I want it to have different levels.  When the player collides with the door sprite I want it to load up the next level.  Could you put the code on how to do that?  

 

Thanks

 

P.S. Sorry im a newb...

Link to comment
Share on other sites

Are you using tilemaps? Whatever you're doing to load the first level you'll have to do to load the second, too. You should probably call "game.world.removeAll();" to get rid of all the stuff loaded for the first level.

Yes I am goind to be using tilemaps (.json) made from tiled map editor and I will give this a try.  Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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