How do I make smooth transitions between layouts

0 favourites
  • 7 posts
From the Asset Store
Complete the collection by purchasing Game and Film Logo Transitions Pt.2: Musical Loops
  • Anyone know how to make a transition between levels/rooms like in the original NES Metroid?

    http://game-oldies.com/play-online/metr ... tendo-nes#

    Here's a link to play it if you don't know what I'm talking about.

    I want to know how to make my character move to the next layout in front of the door upon colliding with the door,

    upon which the transition sets in and the player character is moved to the front of the door in the next/previous layout after the transition finishes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My guess would be that multiple layouts are not the tool you might be looking for in that case, but rather have one layout for, lets say the entire brinstar region, lock the camera inside the current room, and when you go through the door, samus stops inside the door, the camera moves from the current room to the other and locks inside it, then samus goes to the other side of the door, however if the ennemies continues to move, you might have the risk of them going inside the door and hurt you (which happens actually in the first metroid sometimes, not complaining but that was buulllllll*hit).

    Doing this however requires to manage ennemies and items carefully so the game does not have too many things to compute (being inspired by the original metroid on those choices can be a fine idea.), and I will admit this is not something C2 helps a lot with (Being able to scroll from one "layout" to another would be easier, but it is not possible).

  • I was Challenged

    capx

    I used 3 layouts here, and you can use the platformer to walk either left or right in a loop of layouts.

    The doors are close to the edge, it would just require some smart level designing to make it look better, some things from the beginning of the level would need to be on the end of another level. If you make everything relative to the doors with positioning, you are likely to get away with a short blink or flash in the screen.

    As for enemies and objects following you at a distance ... that just takes some smart procedural approach.

    All in all, the mulit layout transition, smooth, is something which is likely not the intended working of levels and layouts ...

    In some of my games I simply use a fade out to black, load other layout which starts out with a black layer, and fade the black away again.

    For what your desiring to work, I would design really big levels, like 10k , 10k, which would not need transitioning.

  • add effect brightness to both layouts.

    then add 2 global variables - brightness and transition

    on first layout on layout started - set brightness variable to 100 and transition to 0

    on first layout when you want to change layouts instead set this:

    set variable transition to 1

    make an event that does this:

    if transition = 1

    subtract from brightness 1

    set effect brightness param 0 to brightness (variable)

    (subevent)

    if(brightness=0) - > go to layout 2

    and on layout 2 - set variable brightness = 0 on start

    if ( transition = 1 )

    brightness +1

    set effect brightnes param 0 to brightness (Variable)

    (subevent)

    if(brightness=100) transition = 0

    something like this should work, around 1-2 sec fade, depending on your fps.

  • There ya go, that actually looks decent already

    capx

    edit: updated it, shoot with space, bullets get transferred too, and theres a tree manually placed.

    I want to know how to make my character move to the next layout in front of the door upon colliding with the door,

    upon which the transition sets in and the player character is moved to the front of the door in the next/previous layout after the transition finishes.

    My capx did just that ... and some extra.

    I think the current slight shutter can be treated as a small dip in frame rate, and likely neglected. You could add a slight flash or dark, or perhaps just some simple loading sign distracting from the stutter ...

  • Good for you lennaert , I believe you won the challenge .

  • For the scrolling I would just use a bullet on the player, force him to move in either direction (keeps it simple)

    I must say I was intrigued by the effect and the potential this technique has.

    As for performance, all assets are already loaded, just not everything rendered, if you keep it easy with how much you let appear in 1 tick on the new layout, you should be fine

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