Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Examples]Docks Tutorial, Image Heavy
HeroOfHyla
post Mar 8 2008, 06:41 PM
Post #1


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




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!


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
Koholint
post Mar 8 2008, 10:30 PM
Post #2


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Skilled




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.

This post has been edited by Koholint: Mar 8 2008, 10:47 PM


__________________________
I'm a one man team. I use other people's resources, and ask for help alot, but those people do get credit from me in my game XD
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Mar 8 2008, 10:56 PM
Post #3


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




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.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
Koholint
post Mar 8 2008, 10:59 PM
Post #4


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Skilled




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

This post has been edited by Koholint: Mar 8 2008, 11:34 PM


__________________________
I'm a one man team. I use other people's resources, and ask for help alot, but those people do get credit from me in my game XD
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Mar 9 2008, 08:56 AM
Post #5


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




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.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
lahandi
post Mar 9 2008, 08:15 PM
Post #6


Level 8
Group Icon

Group: Revolutionary
Posts: 111
Type: Artist
RM Skill: Skilled




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)


__________________________
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Mar 10 2008, 09:16 PM
Post #7


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




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.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
lahandi
post Mar 11 2008, 12:25 AM
Post #8


Level 8
Group Icon

Group: Revolutionary
Posts: 111
Type: Artist
RM Skill: Skilled




Haha, Yes! Now its working. Thanks mate! banana.gif


__________________________
Go to the top of the page
 
+Quote Post
   
Koholint
post Mar 11 2008, 08:12 PM
Post #9


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Skilled




Alrighty, I just made the move route from town 1 to town 2 shorter and it worked.


__________________________
I'm a one man team. I use other people's resources, and ask for help alot, but those people do get credit from me in my game XD
Go to the top of the page
 
+Quote Post
   
DMesterWoW
post Mar 25 2008, 07:59 AM
Post #10


Level 1
Group Icon

Group: Member
Posts: 13
Type: None
RM Skill: Undisclosed




A Demo would work, because i donth really get it sad.gif
Go to the top of the page
 
+Quote Post
   
aviayaso
post Mar 25 2008, 12:42 PM
Post #11


Level 1
Group Icon

Group: Member
Posts: 11
Type: None
RM Skill: Beginner




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 )
Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Mar 25 2008, 03:36 PM
Post #12


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced





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.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
aviayaso
post Mar 25 2008, 08:38 PM
Post #13


Level 1
Group Icon

Group: Member
Posts: 11
Type: None
RM Skill: Beginner




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
Go to the top of the page
 
+Quote Post
   
Trin-rin
post Mar 26 2008, 10:15 PM
Post #14


Level 1
Group Icon

Group: Member
Posts: 5
Type: Event Designer
RM Skill: Beginner




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?


__________________________
~"I'm grin-rin for the Trin-rin!"
Go to the top of the page
 
+Quote Post
   
Desruprot
post Apr 22 2008, 02:15 PM
Post #15


Level 2
Group Icon

Group: Member
Posts: 29
Type: Event Designer
RM Skill: Undisclosed




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 post has been edited by Desruprot: Apr 22 2008, 02:34 PM


__________________________
Lords of Eternity
Mapping: 15%
Database: 25%
Story: 10%
Side Missions: 0%
Alternate Paths: 25%
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 04:31 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker