Map Links

Started by wingish, December 09, 2010, 09:12:56 pm

Previous topic - Next topic

wingish

December 09, 2010, 09:12:56 pm Last Edit: December 11, 2010, 02:42:50 pm by wingish
Tutorial: Map Linking
Version: 0.1
Difficulty : Very Easy

Features:
-Don't need to create 15 events to make transfers!

Step 1 (I was told you don't need a loop, so ignore this step.)

QuoteCreate a new event, and make a loop.

Loop
>
Repeat Above

[/s]

Step 2

QuoteMake two new variables : Player X and Player Y
Control the Variables doing the following.
Player X > Character > Player X
Player Y > Character > Player Y

Loop
>Player X > Character > Player X
>Player Y > Character > Player Y
Repeat Above


Step 3

QuoteCreate a conditional branch depending on which direction you want the character to be facing before it teleports.
In my case, I'll pick down

Loop
>Player X > Character > Player X
>Player Y > Character > Player Y
>Conditional Branch: Player Facing Down
>
>Branch End
Repeat Above




Step 4

QuoteMake another condition branch, checking if Player X or Player Y is the same as the player Y/X that you want them to teleport at. In this case, its the bottom. So I'll check Player Y

Loop
>Player X > Character > Player X
>Player Y > Character > Player Y
>Conditional Branch: Player Facing Down
>Conditional Branch: Player Y=14
 >
>Branch End
>Branch End
Repeat Above


Step 5

QuoteSet the Player Y/X  to what line you want to teleport to. In this case, Its the top. So I'll set Player Y to 0. Now I need to make a new variable called map. Set that variable the to map you want to teleport to.

Loop
>Player X > Character > Player X
>Player Y > Character > Player Y
>Conditional Branch: Player Facing Down
>Conditional Branch: Player Y=14
 >Player Y Set:0
 >Map Set: 2
>Branch End
>Branch End
Repeat Above


Step Six

QuoteNow make a transfer event using variables.

Loop
>Player X > Character > Player X
>Player Y > Character > Player Y
>Conditional Branch: Player Facing Down
>Conditional Branch: Player Y=14
 >Player Y Set:0
 >Map Set: 2
 >Teleport to: Variable [MAP, PLAYER X, PLAYER Y]
>Branch End
>Branch End
Repeat Above


Step 7

QuoteAdd a wait for 20 frames.

Loop
>Player X > Character > Player X
>Player Y > Character > Player Y
>Conditional Branch: Player Facing Down
>Conditional Branch: Player Y=14
 >Player Y Set:0
 >Map Set: 2
 >Teleport to: Variable [MAP, PLAYER X, PLAYER Y]
>Branch End
>Branch End
>Wait 20 frames...
Repeat Above


Hope this helps!

Further Information:
When using this Event System, you just have to copy and paste the events to each map. But you have to change some of the variables to get the results you expect.

Player X : ONLY change this if the maps are linking left to right
Player Y : ONLY change this if the maps are linking up to down
Map : Change this to the map you want to teleport to.

You also have to change one conditional branch.


>Conditional Branch: Player Facing Down
>
>Branch End

Change the Player Facing to the direction you want them to face before they teleport.


fjurio

That could be handy. Good idea.

Aqua

Why are you looping? O-o
Parallel Process events already "loop"

Adding a loop is just more cause for lag.

wingish

Thanks for telling me. I was always under the assumption that you had to add a loop.

fjurio

Is it better to use a wait command with one frame in the commandlist? Cause i had problems with input conditions in parallel processĀ“s until i used wait.

wingish

In step 7 it mentions to use a wait. So yes its okay to use a wait.