Help - Search - Members - Calendar
Full Version: [Examples]Docks Tutorial
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion > RPG Maker VX Tutorials
HeroOfHyla
This is a tutorial that lets you talk to someone, and then it cuts to a ship traveling across the sea, and then cuts to a destination town. It should work with any RPG Maker except XP (well, maybe not 95). I used VX for the coding.

WHAT YOU NEED:
3 Switches (Travel1, Travel2 and Destination) plus 2 additional switches per route.
A world map
1 map for each town (there are 2 towns in this tutorial)
1 empty map to store the vehicle when it's not in use.

PART 1: SETUP

Create your 4 maps.

World map:

Mine's really boring, try to spice yours up a bit.

Towns:

Town1:


Town2:


And create an empty map (not shown).

Make a person who operates the dock in each town. Their code is essentially the same, but causes a different switch to activate. The guy in town1 causes travel1 to activate, the guy in town2 causes travel2 to activate.

Guy1:


Guy2:


Now go to the world map and create an autostart event.

Tell it to only activate if Travelling1 is on. Tell it to make the player enter the vehicle. Set up a move route. Mine's 8 or so right, 30 or so down, 8 or so left. UNCHECK the wait until completed box. Add a wait for 1 second (60 frames in VX) after the move event. Then fade in the screen. Wait five seconds or so, fade the screen back out, turn 'destination' switch on, and teleport to the destination map.

Add a new page to this event, and duplicate everything but with the move route going the opposite way, as if you were starting from the other town. Make this page activate if Travelling2 is on.

Now go back to your town maps. In town 2, make an autostart event that only activates if Destination is on. Dismount the player from the vehicle. Move the vehicle to the empty map. Turn off Travelling1. Fade the screen in. Turn off Destination.

Make the same event in Town 1, but turning off Travelling2 instead.

That should do it. Need more help? Post here!
Koholint
Thanks for this. But I have one problem. Everything works fine, but my character appears on the world map, and he and the boat both don't move. a few seconds later, I appear in the next town. I'll read back over and make sure everything is right.

EDIT: I think I have found out why the boat won't move. It won't move until after I've teleported to the new city. Basicly the boat moves when it gets stored in the extra map.
HeroOfHyla
When you teleport the character to the world map, to enter the vehicle, don't teleport him on top of the vehicle. Teleport him next to it facing it.
Koholint
Alright, lemme try that

EDIT: ROFL! Well, I sorta got it to work. I enter the boat now, but the boat wants to go in one direction, back to the port it started from. When it teleports me to the new city, I'm still in the boat XD

EDIT2: Got it working. Just 1 minor problem. Going from town 1 to town 2 the player does not get off the boat. Haven't tested it from town 2 yet

EDIT3: Town 2 going to town 1 works fine. Only town 1 to town 2 has the problem
HeroOfHyla
QUOTE
Town 2 going to town 1 works fine. Only town 1 to town 2 has the problem


QUOTE
Now go back to your town maps. In town 2, make an autostart event that only activates if Destination is on. Dismount the player from the vehicle. Move the vehicle to the empty map. Turn off Travelling1. Fade the screen in. Turn off Destination.


Did you make sure that the event in town 2 turns travelling1 off? Did you make sure that it's autostart?

If your character in town2 appears facing a wall when he teleports in, try adjusting your wait time on your move event on the world map. Because of the way VX works, if you teleport in the middle of a move event, the character might continue moving after the teleport. And if the character is facing an unpassable object, he might not be able to dismount from the vehicle.
lahandi
HyroofHyla, I've done what you tell but I gotta problem.

After talking with the NPC in the town 1, the scene goes to the world map, the boat rowing, but it wont move. And then after the 'wait', the scene goes to Town 2. And in there the player became a boat and it wont move but its animated (rowing). Here's the pic:



I've unchecked the 'wait until completion'. I've set it Autorun. Maybe the route settings should be 'event' instead of 'player'? But I've tried this, and it didnt solved the problems.

And the second question. In the move direction in World Map event, why it set to be:
- Get on/of vehicle
- Set route
- Wait
- Fade in
- Wait
- Fade out
- Control switches
- Transfer player

Why not :
- Fade in
- Get on/of vehicle
- Wait
- Set route
- Wait
- Fade out
- Control switches
- Transfer player

Thanks for your kindly help. smile.gif


Here I put my event command so that you can inspect where my mistake is.
The NPC in Town 1


The NPC in Town 2


The World Map Event (page 1)


The World Map Event (page 2)
HeroOfHyla
You're problem is that you're using the second water tile on the chipset. The second one is "Deep" water, and only ships can move in it, not boats.

For the other part of your first question:

QUOTE
Now go back to your town maps. In town 2, make an autostart event that only activates if Destination is on. Dismount the player from the vehicle. Move the vehicle to the empty map. Turn off Travelling1. Fade the screen in. Turn off Destination.

Make the same event in Town 1, but turning off Travelling2 instead.


Did you do this part? I didn't give any examples of it in my post (I just explained it), so maybe you missed it.

QUOTE
And the second question. In the move direction in World Map event, why it set to be:
- Get on/of vehicle
- Set route
- Wait
- Fade in
- Wait
- Fade out
- Control switches
- Transfer player

Because I wanted the boat to already be moving when the screen faded in, but either one could work.
lahandi
Haha, Yes! Now its working. Thanks mate! banana.gif
Koholint
Alrighty, I just made the move route from town 1 to town 2 shorter and it worked.
DMesterWoW
A Demo would work, because i donth really get it sad.gif
aviayaso
thanks for the guide. but i got a problem.
QUOTE
Now go back to your town maps. In town 2, make an autostart event that only activates if Destination is on. Dismount the player from the vehicle. Move the vehicle to the empty map. Turn off Travelling1. Fade the screen in. Turn off Destination.

i made autostart events in both maps and they are activating only if destination is on and i turned off travel1 and destination.
when the ship ends the sail it teleports to the town and all is good except that the player still in the ship and i cant move.
how i dismount him and moving the ship back to the empty map?
(sorry if my english isnt so good tongue.gif )
HeroOfHyla

This is the command for dismounting from the vehicle. When using it, make sure that the player isn't facing a wall, or he wont be able to leave the vehicle.

The one right below transfer player sets the location of your vehicle, so you can move it to an empty map.
aviayaso
YAY its working. thanks! thanks.gif
QUOTE
When using it, make sure that the player isn't facing a wall, or he wont be able to leave the vehicle.

when i transfered the player he was facing the man who operates the dock soi moved him 1 square down.
THANKS FOR THIS AWESOME GUIDE!!!
waiting to see more from you. biggrin.gif
Trin-rin
Hi! I got this to work and everything but there's one thing that's bugging me. When I go from one town to the next, the world map music plays once I'm in the town instead of the music I set for the town. Should I just change the event so it plays the music I want once it arrives or is there another way to fix it?
Desruprot
I'm developing a ticket system. In which you purchase it from somewhere...can this also work if I'm not using an NPC? I tried using the waht I could and is not working...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.