goto specific coordinates in next layout

0 favourites
  • 6 posts
  • Hello! Just wondering if someone can tell me how I can make my character goto specific coordinates in the next layout. Also if someone could tell me if there are any layout to layout transition effects.

    Will continue to search forum for previous post, haven�t found anything yet though..

    Thanx

  • I'm not sure if I've understood you correctly but would this not work:

    On start of layout > Set 'character' position to X, Y

  • maybe if there was only one way exits.. But if I exit layout1 into layout2 and then go to another exit in layout2 into layout3 this also has to work in reverse order so that when I return from layout3 into layout2, I appear at the correct place in layout2 and not the one I came through when exiting layout1. Hmm.. I�ll try to illustrate :)

    <img src="http://dl.dropbox.com/u/61303567/map_of_layouts.png" border="0" />

  • Use two global variables to set the position. Set them right before using "go to layout", and then use FredQ's idea.

  • You could change layouts by global variable... Then add a subevent for each particular level assuming the character position is going to be different everytime.

    Although I'm not sure why you can't just put the character on each layout in the position that you want him to be when the layout starts.

    Anyway I hope these screenshots will be useful...

    Progress level by variable

    <img src="http://dl.dropbox.com/u/44025915/LevelByVariable.png" border="0" />

    Level Specific Action - Sub-event where you would set position of character

    <img src="http://dl.dropbox.com/u/44025915/LevelSpecific.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah. All you need to do is set two global variables for X and Y (or one if you want to do something like "door number")

    I would do it the second way. Have a certain amount of doors in your 'meta-layout'. Give every door a variable ("door_number") and a destination text variable("destination") and give matching doors the same value.

    So it becomes: On collision with door -->

    -Set global variable (door_temp or something) to door.type

    -Go to layout by name (door.destination).

    Then

    [on start of layout For each door door.type = door_temp] -->

    -door: create player.

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