problems with layout transitions

This forum is currently in read-only mode.
From the Asset Store
Complete the collection by purchasing Game and Film Logo Transitions Pt.2: Musical Loops
  • hi i'm having a problem with transitioning from one layout to another.

    so i have a transition sprite (invisible over a door sprite) that if the player is overlapping and you press the up arrow key you transition to a selected layout. in the next layout i have the character spawn in the same place where the door is to get out and go back to the first layout, which i have a different transition sprite overlapping the door.

    what happens is when i press up at the first transition sprite it also plays the event for the second transition sprite, so you end up back in the same layout.

    i can tell it already used the second transition because i have music playing at the start of the first layout and it starts all over again after pressing up.

    i tried using an ELSE event, but that didnt work.

    any help would be awesome thanks!


    i also have trigger once condition on these


    FIXED i think?

    • what i did was for the transition object i have it positioned on the start of layout and now it doesnt skip over.. i hope <img src="smileys/smiley32.gif" border="0" align="middle" />


    nevermind, didn't work ):


    okay so i switched the order of the events.. instead of having "on key pressed" first, on put whether the character was overlapping the transition object first. it seems to be working now


    ahhhhhhhhhHHHHHHHHHHH!!!! nevermind i cant get this to work ha

  • WELP i gave up. now im just going to use different keys for the transitions

  • Post the cap, it is hard to understand your problem, and a lot harder to explain how you could do it without seeing the whole thing.:)

    Every time you need some help, and it is not like "is it possible to do <something>?" post the cap, you will more likely to get an answer if you do.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • okay thanks pecek. will note for the future, although in regards to this problem i found an alternative way, maybe next project i'll fix up a test cap so i can upload it. im kinda iffy about uploading the cap im working on now cus ive put alot of work into it

    thanks again

  • Use a global variable, like layoutState, when they hit up, have a condition that the event only fire if layoutState = 0.

    In the event before calling the next layout, set layoutState = 1. That way when the new layout loads, they cannot trigger the door again right away because layoutState equals 1. Then figure out what needs to happen to set it back to zero. Either a timer, or another event so they can then use the door again.

  • awesome thanks bluephaze

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