Best way to create multiple levels?

0 favourites
From the Asset Store
Best car suspension with spring effect and very cool terrain generation.
  • If possible I don't want the player to reload the assets if I must make a new capx for each level. (Web Cache maybe?)

    My idea is to create 5 levels more, with less space between the colliders and more exits.

    What do you guys think is the best solution?

    Download the project here.

  • Check out the manual on layouts.

    Your limited in the free edition tho...

  • newt I'm not really sure what you are pointing out in the layout documentation. Do you suggest me to make layers for each level? For example, creating layers for the changes of each level (pings and exits), setting them invisible and showing a layer per level? Sounds good to me, but I'm far from knowing how to do that...

    Care to share some light?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not layers, layouts. Each layout has access to all existing assets. Think of them as pages in a book. Layers are like panes of glass.

    All you do is add a layout, add objects from the object bar, add conditions for that layout, specifically a condition to go to a particular layout.

  • You also now have the ability to duplicate a layout, which can save a lot of time.

  • But making each layout a new level can add up to the final size quite quickly, at least that's what i've experienced before.

    By doing this, my game was 3mb with 1 layout level. When I switched to external files for maps, the game was 300kb, with each level being 200kb.

    Making each layout a level also creates problems where if you need to change something later, you need to go and change it on each layout (not sure if thats how it works on C2, but I had this problem way back when using MMF2)

    I hope C2 soon adds supports external files, like arrays and inis

  • 7Soul Do you know about event sheet includes? Those fix the problem MMF has about having to update each layout's code by copying and pasting it.

  • That's what I was thinking about, but since I'm not using C2 yet, I didn't know if it had included event sheets in it already

  • I was an avid MMF2 user, been working with this stuff since K&P waaaay back in the day when it was put out by Maxis. I have to say that the basics of it hasn't changed much at all to be more inclusive for a modern workflow. C2 is lightweight compared to MMF2, and seems far more powerful. I think the one thing that makes it nicer is that it's fully compatible with every platform that has an HTML5 rendering browser.

    Being able to include event sheets has made the process very very streamlined. I love it more than anything for size sake, and keeps code cleaner on my end.

  • In mmf2 there is a global event sheet for that kind of stuff.

    Hidden in the Application property tabs

    And qualifiers aren't available in this global event sheet

  • I'm quite confused, I can't find where to add a new layout, The only option I see is changing the name of the current layout in the properties panel... Is that why newt told me I'm limited to the free version? I can't create layouts?

    I saved my CAPX as a Project and browsed to the Layout folder, duplicated the Layout 1 and renamed accordingly, I open up the project but there are no Layouts except Layout 1.

    Screenshot:

    <img src="http://img855.imageshack.us/img855/2509/layoutnr.png" border="0" />

  • You can add and duplicate layouts from the project bar

    <img src="http://dl.dropbox.com/u/5426011/pics/layout.png" border="0"><img src="http://dl.dropbox.com/u/5426011/pics/layout2.png" border="0">

  • Thanks R0J0hound!

  • From the looks of it you could instead of making a lot of layouts you could make a simple loading system for levels using arrays. Essentially have an array where you store the placement of the different objects you want to place. From the looks of it you aren't making a scrolling game so ths could probably work pretty well. It's a bit more involved than making several layouts though.

  • Wouldn't that require the ability to save and load arrays though? I haven't got all that involved in working on something in C2 yet, but I haven't yet found a way to do this without resorting to something like the CSV plugin, which looks like I might be able to use to get the same effect, though it's only a 2D array, not 3D.

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