So I am on the field/world map and boarded the ship from a dock. I want to travel to a floating island in the ocean and zone in by touching its shadow but when I zone in it takes the ship instead of letting the player disembark and THEN zone in. How do I make the player disembark from the ship before transferring to the new interior map?
Zoning into floating island from ship, please help disembark during
RPG Maker VXAce SupportBy zone in you mean transfer right? If that's the case a few solutions are available.
When a player exits a ship, they take one step forward in the direction they are facing - this is important
The solution below presumes there is only one shadow to interact. (refer to the one below if otherwise)
Make an event with player touch, below characters, where the shadow is
In its contents:
>Fadeout screen
>Set move route: Player ->Turn (whatever direction the island is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Transfer player -> (Wherever you would like on the "interior" map)
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
and then if to back to the world map and board the ship, have an event in your "interior" map.
Trigger is up to you.
Its contents:
>Fadeout screen
>Transfer player -> (the coordinates where the player should be after exiting the ship from before, not where the ship is!)
>Set move route: Player ->Turn (towards whatever direction the ship is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
If you have more than one shadow to enter the interior map:
Make an event with player touch, below characters, where the shadow is
In its contents:
>Fadeout screen
>Set move route: Player ->Turn (whatever direction the island is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Control variable (make a new variable called playerX for example and set it to the player's x coordinates. Then make another variable called playerY for example and set it to the player's Y coordinates)
>Transfer player -> (Wherever you would like on the "interior" map)
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
and then if to back to the world map and board the ship, have an event in your "interior" map.
Trigger is up to you.
Its contents:
>Fadeout screen
>Transfer player -> Variable: X = playerX (the variable which we stored the player's x coordinates in the world map)
Y = playerY (the variable which we stored the player's y coordinates in the world map)
ID = the world map ID
>Set move route: Player ->Turn (whatever direction the ship should be)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
The logic:
1. Player touches the shadow
2. Screen fades out
3. Player faces towards the island and is granted noclip( through passability)
4. Player exits the vehicle, moving towards the island
5. Player no longer has noclip
5. Player is transferred to the "interior map". (If there were multiple shadows, the players coordinates are stored to variable playerX, playerY before being transferred to the "interior" map.
6. Screen fades in.
1. Player triggers an event
2. Screen fades out
3. Player is transferred to where the player was when exiting the ship before. (Transferred to coordinates stored on variables for multiple shadows)
4. Player faces towards the ship, and is granted noclip( Through passability)
5. Player enters the vehicle
6. Player no longer has noclip
7. Screen fades in
When a player exits a ship, they take one step forward in the direction they are facing - this is important
The solution below presumes there is only one shadow to interact. (refer to the one below if otherwise)
Make an event with player touch, below characters, where the shadow is
In its contents:
>Fadeout screen
>Set move route: Player ->Turn (whatever direction the island is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Transfer player -> (Wherever you would like on the "interior" map)
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
and then if to back to the world map and board the ship, have an event in your "interior" map.
Trigger is up to you.
Its contents:
>Fadeout screen
>Transfer player -> (the coordinates where the player should be after exiting the ship from before, not where the ship is!)
>Set move route: Player ->Turn (towards whatever direction the ship is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
If you have more than one shadow to enter the interior map:
Make an event with player touch, below characters, where the shadow is
In its contents:
>Fadeout screen
>Set move route: Player ->Turn (whatever direction the island is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Control variable (make a new variable called playerX for example and set it to the player's x coordinates. Then make another variable called playerY for example and set it to the player's Y coordinates)
>Transfer player -> (Wherever you would like on the "interior" map)
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
and then if to back to the world map and board the ship, have an event in your "interior" map.
Trigger is up to you.
Its contents:
>Fadeout screen
>Transfer player -> Variable: X = playerX (the variable which we stored the player's x coordinates in the world map)
Y = playerY (the variable which we stored the player's y coordinates in the world map)
ID = the world map ID
>Set move route: Player ->Turn (whatever direction the ship should be)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
The logic:
1. Player touches the shadow
2. Screen fades out
3. Player faces towards the island and is granted noclip( through passability)
4. Player exits the vehicle, moving towards the island
5. Player no longer has noclip
5. Player is transferred to the "interior map". (If there were multiple shadows, the players coordinates are stored to variable playerX, playerY before being transferred to the "interior" map.
6. Screen fades in.
1. Player triggers an event
2. Screen fades out
3. Player is transferred to where the player was when exiting the ship before. (Transferred to coordinates stored on variables for multiple shadows)
4. Player faces towards the ship, and is granted noclip( Through passability)
5. Player enters the vehicle
6. Player no longer has noclip
7. Screen fades in
I do have two shadows so I am using the second script you have. I was following you until the point with the variables, when I playtest the character leaves the ship and steps into the shadow and the screen fades out but it does not fade back in. This is what the variable section looks like in my game, tell me if I got it right:
@>control variables: [0001-playerx] = Player's Map x
@>control variables: [0002-playery] = Player's Map y
@>control variables: [0001-playerx] = Player's Map x
@>control variables: [0002-playery] = Player's Map y
It's called eventing by the way, scripting is a different thing. Just to keep in mind so you don't confuse the moderators!
>Fadeout screen
>Set move route: Player ->Turn (whatever direction the island is)
> Through On (turns on noclip for the player)
>Enter/exit vehicle
>Control variable (make a new variable called playerX for example and set it to the player's x coordinates. Then make another variable called playerY for example and set it to the player's Y coordinates)
>Transfer player -> (Wherever you would like on the "interior" map)
>Set move route: Player -> Through Off (turns noclip off)
>Fadein screen
If you follow it exactly there shouldn't be a problem. The variable has nothing to do with your error, they look fine anyway. Are you sure setup all the events as specified before testing? After the variable part there is a transfer, set move and Fadein Screen. If you don't have those that's the problem. Otherwise can you please put up a screenshot of the event contents?
Hmm, I believe I followed the eventing exactly as you showed me, let me post some screenshots:
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/pic01.jpg[/IMG]
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/pic02.jpg[/IMG]
Again, all that happens is when the character exits the ship and moves upward (toward the island) the screen fades out but does not fade back in.
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/pic01.jpg[/IMG]
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/pic02.jpg[/IMG]
Again, all that happens is when the character exits the ship and moves upward (toward the island) the screen fades out but does not fade back in.
I see the problem.
It's turn up, not move up for the first move route command. What is happening is the player can't move because there is no pass-ability yet and the rest of the commands don't execute.
Also I forgot about the mapID, you have to also make another variable e.g. "mapID" (haha original) and set it to the current mapID.
It's turn up, not move up for the first move route command. What is happening is the player can't move because there is no pass-ability yet and the rest of the commands don't execute.
Also I forgot about the mapID, you have to also make another variable e.g. "mapID" (haha original) and set it to the current mapID.
Ok were making progress, the zone in... er, transfer to the interior map works great (thanks btw). But now when I try to return to the ship it goes black right after clicking on the ladder. I think I may be getting the mapID wrong...
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/01.jpg[/IMG]
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/02.jpg[/IMG]
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/01.jpg[/IMG]
[IMG]http://i123.photobucket.com/albums/o299/shinmuriel/02.jpg[/IMG]
Control Variables: [0003: World Map] = Map ID
That should be controlled just before the player leaves the field/world map not the interior map. By setting it in the interior map the ID became the interior map and the player was transferred back to the interior map.
That should be controlled just before the player leaves the field/world map not the interior map. By setting it in the interior map the ID became the interior map and the player was transferred back to the interior map.
Hey it works, thanks! If this is easy enough for a child I am not sure what that says about my IQ. >.>
Don't beat yourself up about it. Eventing is just a logic thing that you will catch on quickly with practice.
I recommend reading up some tutorials and playing around with events. Also check this out http://forums.rpgmakerweb.com/index.php?/topic/19717-bustededs-tips-n-tricks-last-version/
You can learn alot from the demo and proj files. I know I did. Best of luck!
Original thread: https://forums.rpgmakerweb.com/threads/zoning-into-floating-island-from-ship-please-help-disembark-during.49425/