how i goto next level

0 favourites
  • 13 posts
From the Asset Store
Unlock Levels, Worlds & skin plus add coins by watching ads
  • i make a game but i don't know how i go to next level

  • Super simple. Click on the project tab, under layout create a new layout (default = Layout 2) then setup a collision detect or anything you want to complete the level (timer etc...) in Layout 1 and then go to the events sheet and set the system go to layout "Layout 2" once you have hit the collision/time ran out...

    Here is a real quick version. Level change on the ball falling out of layout 1 then layout 2 launches.

    Basics level change

    Here is a more complex tutorial on saving variables...

    How to series - 'In Game Shop'

  • Thank You Very Much

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This works for me. Sometimes.

    There is some kind of bug that sometimes randomly sends the player to another level then set in the eventsheet.

  • teebee are you using custom layout Names or default names. I have seen many times when keeping the default Names where is easy to put the wrong name in a reference since they are all so similarly Named.

  • What if the layout is almost the same for all the levels.

    Is it somehow possible to just include another event sheet when you go to the next level?

    How will copying the layout say 50 times for 50 nearly identical looking levels influence the file size and memory used?

  • Ok So I have been stuck on a similar problem for 3 weeks.

    I want a 'level up screen'. one where you Pick something, and then it goes back to the original layout. After making some minor modifications, to the demo I added a second layout. The goal of this layout was for the game to pause, and the user to pick a second weapon upgrade to use, and then going back to the original Layout.

    I started by having a second event sheet for the upgrade page. Didn't work. I tried putting it on the original event sheet. Didn't Work. I tried having both. Didn't work. I stopped using the default OK button and made my own. Didn't Work. I downloaded the chalkboard example that is provided somewhere else here on the forums that has a single stage and a Main Menu, and the code looks exactly the same. I checked to make sure that I wasn't re-triggering the event by automatically adding 1 to the Score. I even tried removing the changes to the game time. Didn't Work.

    Finally. I am posting here.

    Here is a Link to my Google Drive File.

    docs.google.com/file/d/0B1KYrkkdLVFBZFVvWmduZW9ScUU/edit

    Thanks for Any Help!

  • Wootah , Derp to you , sir :P

    You forgot to assign the eventsheet to a layout

    To do that , left click on the layout , and you should see an event sheet option , In your case it's set to (none)

    Set it to *Whatever-You-Want* and all should work as intended !

  • Wow! That was super simple!

    Thanks. I am not sure where where I would have picked that up, but that works.

    But a follow up question, the state of the First Layout doesn't look like it is saved. So this won't work like I thought it would in terms of a pause screen (in such a case as local variables storing monster health for example). Is there a simple way to do this?

  • Wootah A seperate layout for your pause screen may not be as good of an idea, but if you do want to store some info, you can use the web storage object. But that won't save the layout state. You can save variable values though and use those to do things on load.

    You may want to simply pause the rest of the layout and create a sprite or object for your level up screen. Let them pick, assign the values based on their choice to variables, then hide the level up object and unpause the layout...

  • Alright, Thanks for the tip. I don't want to divert too far from subject of this thread. so I will experiment for a while and come back with more questions (in it's own thread) later.

  • teebee are you using custom layout Names or default names. I have seen many times when keeping the default Names where is easy to put the wrong name in a reference since they are all so similarly Named.

    Interesting. I was having a similar issue, but after renaming my layouts from "Level 1" and "Level 2" to "ghosts" and "explore" (without quotes), it loads up the correct layout I set it to. <img src="smileys/smiley3.gif" border="0" align="middle" />

    I guess it doesn't like having the first same word with spaces in front of it...?

    Edit: Um... Now it doesn't. @

    Weird. I guess I'll play around with it more and see what happens.

  • I use custom names. And I have fixed it now by sending the player to a message screen with "You have concquered level #" that sends you to next level after a few seconds. Found the information on the forum.

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