How do I Create Multiple Levels

0 favourites
  • 5 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hey Guys could really use some help in figuring out what my problem is... I have a simple concept platformer taking shape and the problem i'm having is moving from level to level... when building the second level or third or fourth do I need to bring a copy of the player into each level cause for some reason what's happening to me is when player enters the bouns level that has a timer when hits zero brings player back to level 1 ( tried to simply use a VAR to hold boolean that toggles if he came from bonus round or not ) if from_bonus = true go to level one and set players position to where the bonus triggered... then I toggle from_bonus = false... but I'm getting two players now spawning one above the other...

  • Is your player's Global property set to true? That would allow it to stay present from layout to layout.

    If you're getting multiple players, perhaps you have an event somewhere that is being called which creates a new player- if so, you should make a condition for it that checks whether a player exists or not before creating one. One way to check if a player exists is to compare two variables, and then use player.Count > 0..

  • I'll have a peek at the code again but question for you on the second level do I drop a toon in there or just create the layout and when system--> go to layout happens the player ports to the new layout?????

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • drop a toon? I'm not sure what you mean by that.

    You just need one player in one layout, and if it's Global property is set to True, it will carry over to any layout you switch to. If you put other players in other layouts, then you'll end up having multiple players.

  • you could make level or new room like this

    https://www.scirra.com/tutorials/532/ho ... creen-game

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)