to the next level, without the use of new event

0 favourites
  • 13 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • To the next level, without the use of new event sheets. How?

  • Attach the same event sheet to another layout.

    Check my tutorial Asteroid in less than 100 events to see this process (and many others) described.

  • Attach the same event sheet to another layout.

    Check my tutorial scirra.com/tutorials/358/asteroid-clone-in-less-than-100-events to see this process (and many others) described.

    nothing useful found. I need to make the transition to the next level, but use only one event sheets.

  • Not sure what you mean. Are you asking how to make each level use the same event sheet? Or just how to include a general purpose event sheet into another one so you don't have to duplicate events? Or something else?

  • Not sure what you mean. Are you asking how to make each level use the same event sheet? Or just how to include a general purpose event sheet into another one so you don't have to duplicate events? Or something else?

    how to make the transition to the next level when all the levels have on same event sheets

  • If you want to make a transition, you have to code that. It can be as simple as using a Go to Layout event, or manually destroying and spawning everything.

    If all the levels have the same event sheet, then you either need to store the different level in the layout, (by placing the sprites on the layout, if your level is small enough) or put in code to detect which level it's on and spawn the right level via events. (You don't even need separate events for this method, it can all be contained to one layout if desired. Just destroy old and spawn new.)

  • amigoj

    i'm not sure what you want exactly. but this might be a method of getting to what you want. valdarko explained this to me about his level transitions...

    http://www.scirra.com/forum/your-c2-tests_topic41840_page34.html

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • amigoj

    i'm not sure what you want exactly. but this might be a method of getting to what you want. valdarko explained this to me about his level transitions...

    http://www.scirra.com/forum/your-c2-tests_topic41840_page34.html

    very good example. is it possible to download the source code of the game?

  • create a global variable called levelno.

    every time level is comdd 1 to levelno.

    go to layout by name 'level&levelno.' >

    it works in theory but i do not have access to C2 now and for a considerable amount of time.

  • > amigoj

    >

    > i'm not sure what you want exactly. but this might be a method of getting to what you want. valdarko explained this to me about his level transitions...

    >

    > scirra.com/forum/your-c2-tests_topic41840_page34.html

    very good example. is it possible to download the source code of the game?

    i pretty much understand what he did from his example, but you can ask valdarko if he can make an example capx for you.

  • create a global variable called levelno.

    every time level is comdd 1 to levelno.

    go to layout by name 'level&levelno.' >

    it works in theory but i do not have access to C2 now and for a considerable amount of time.

    I probyval done through "the transition to the next level." Posted in line Lauoutname + 1. But this string lauout.

    Sorry for my bad English. Do not really know the language.

  • > create a global variable called levelno.

    > every time level is comdd 1 to levelno.

    > go to layout by name 'level&levelno.' >

    > it works in theory but i do not have access to C2 now and for a considerable amount of time.

    I probyval done through "the transition to the next level." Posted in line Lauoutname + 1. But this string lauout.

    Sorry for my bad English. Do not really know the language.

    Ugly way: If your levels are in strings, make an array where each index at level number has corresponding level name, you can use that to refer level transitions in "level+1" manner described before.

  • amigoj

    sorry for the late, i just stomp to this post today, you still need to know how to make an abrupt screen transition like i did on my test project, or level transition?

    the next time you need some help, say the kind/type of game you are making and put some examples(games that have the same mechanic), because you can mimic pretty much anything with events, you just need to think "event-wise". the nice of construct 2 is this intuitive approach.

    this is the explanation i did for harrio back in the day:

    <img src="http://sphotos-c.ak.fbcdn.net/hphotos-ak-ash4/306049_458026150901012_919939161_n.jpg" border="0" />

    the scene switch are just <font color=red>red squares objects</font> with the same screen size (side by side) and i'm using the event: when Player is overlapping Square>system-scroll to(Square.imagepointX(0), Square.imagepointY(0)

    the logic here is simple, while the character is overlapping the red square object, the screen will be stopped in the Origin of the red square object(the middle of the object)

    so, i just did this event 1 time for the red square object, and now i can copy the square object every time i need other screen, no need to remake the event. this must not be the best way to make this, but is very simple and i understand how it works... a little; i dont know if it have any perfomance issue but it works for me.

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