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
> [Eventing]Easy Gliding system, Like in Pokémon =P
stripe103
post May 2 2010, 08:43 AM
Post #1


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




This is a little tutorial on how to make an easy gliding system. This is a system that I've seen in most RPG games, but mostly in the old Zelda games and the Pokémon games.

Uses 1 switch, 1 variable and 1 common event.

1. Make a new Common event and name it for example "Gliding system", set the "Trigger" to "Parrallel" and choose a switch to start it with.

2. In the common event, make a "Control Variable" command that changes a variable called "Hero Terrain Tag" or something like that and have it set to the current Player Terrain Tag.

3. Make a "Conditional Branch" that checks if the "Hero Terrain Tag" is equal to 1(or whatever you want it to be).
Have the checkbox "Set handling when conditions do not apply" checked.

4. Make another "Conditional Branch", go to the 4th tab and choose "Script".
Write "$game_player.moving?" in the text box.
This stops the player from continue running when he reaches an impassible tile but is still standing on a "glide" tile.
You do not need to have the "Set handling when conditions do not apply" checked.

5. Now you need four more Conditional Branches that checks if the player is facing down, left, right and up. (the 3rd tab)
You do not need to have the "Set handling when conditions do not apply" checked.

6. Inside each branch, have a "Set Move Route" event command and have it make these commands:
CODE
Move Animation OFF (prevents the player from walking when he is gliding, have it on and you'll see what I mean)
Move Down/Left/Right/Up (depending on which branch you are in)

Have the "Ignore if can't move" checked.
Do NOT have the "Repeat Action" checked

7. In the "Else" part of the first conditional branch, have a "Set Move Route" command and have it say:
CODE
Move Animation ON

Do not have any checkbox checked.


This is what the common event should look like:
Attached File  common_event.bmp ( 571.68K ) Number of downloads: 42


DEMO
For the lazy ones
[Download]
Filetype: .exe
Filesize: 258 Kb
Host: Mediafire

Then, where you want the player to glide is quite simple to do. In the Tilesets in the Database, choose the "Terrain Tag" button and change the tiles you want to glide over to 1(or what you set it to in the 3rd step) and of course set the switch you chose in the first step to ON.

Credits would be appreciated but not required.

If you have questions, PM me or post in this thread.


Regards
Stripe103


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
stripe103
post May 6 2010, 10:18 PM
Post #2


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




So... 64 views and no respond... hmm then I guess there is no problems... Good.


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Mataris
post May 11 2010, 12:55 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 73
Type: None
RM Skill: Intermediate




I was actually trying to figure out how to do this on my own when you had resonded to one of my other posts and I looked in your "My stuff" PERFECT thanks alot man
Go to the top of the page
 
+Quote Post
   
stripe103
post May 11 2010, 11:12 PM
Post #4


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




No problem! Acctually, I had problems with it too because when the player stood on a "glide" tile and couldn't move foreward because of a impassible tile I coudn't move him. That was before I thought of the "$game_player.moving?" script.


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   
Max
post Jun 17 2010, 03:14 AM
Post #5


Level 15
Group Icon

Group: Revolutionary
Posts: 271
Type: Mapper
RM Skill: Advanced




Wow, you should post up a demo of this, because people like me can't be bothered doing all these stuff.


__________________________

Go to the top of the page
 
+Quote Post
   
stripe103
post Jun 17 2010, 06:16 AM
Post #6


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




I don't see much of a point in doing a game when you don't want to spend 10 mins making stuff but sure.


__________________________

By Axerax

The rest of my sig



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: 23rd May 2013 - 08:34 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker