Jumping off Cliffs! Pokemon

sock

Veteran
Veteran
Joined
Aug 9, 2013
Messages
53
Reaction score
4
First Language
English
Primarily Uses
N/A
Hi, was wondering and looking for some general discussion... Is it possible to make a cliff/ledge exactly like they are in Pokémon Games (i.e red/blue version etc) though, without using events?

I'm trying to get the same effect you would get in the classic Pokémon games, where your character would leap of an edge when directed south.

I just don't want to bulk out my maps with rows of events on all my ledges to make the jump animation. So... could something like a script designate a particular tile to trigger a jump??

Cheers!!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,640
First Language
Czech
Primarily Uses
RMMV
It could. I don't know ruby, so will not provide you with codes.
But what you need to do is decide if the region ID of the target square is of certain value before the character moves. If it is and the character is facing south or west, he will jump. If not, he will stay stationary.
 

sock

Veteran
Veteran
Joined
Aug 9, 2013
Messages
53
Reaction score
4
First Language
English
Primarily Uses
N/A
Ahh, yeah... Ok. It would be so sweet if you could edit region IDs as a vanilla part of VXace. Thanks anyhow
 

Canini

Veteran
Veteran
Joined
Mar 29, 2016
Messages
1,025
Reaction score
686
First Language
Swedish
Primarily Uses
RMVXA
If you are comfortable with scripting I would suggest using https://galvs-scripts.com/2012/11/29/jump-ability/ as a starting point. I am using it to to make a action rpg, with different environment making the character jumping farther or less so. It should be easy to modify it so you can only jump down cliffs instead of both up and down.

The script is free to use even for commercial projects if you give credit to the author.
 

The Mighty Palm

Resident Palm Tree
Restaff
Joined
Jan 29, 2015
Messages
566
Reaction score
4,150
First Language
English
Primarily Uses
N/A
Well there's no way to do it without events, but there is a way to do it with just 1 common event for the entire game instead of littering your map with events on the designated tiles. No scripts required. I made this in a brand new project:

STEP 1: Put your regions where you want to press down to jump.

STEP 2: Make this in your common event tab. (more in-depth at the bottom)

Step 3: on the first map, turn on your required switch.
And that's it! You're done.


In your Database there is a Common Event Tab next to Tilesets and System.
Name it whatever you want, doesn't matter.

Set the Trigger to Parallel Process and give it a condition switch.
This is going to make the common event run at all times IF the switch is on.
You may get a little lag if you have several of these running constantly but if it's just
one there should be no problem unless you're running on VX Ace on a Microsoft Toaster.

We're gonna need to set some variables now. Set Variable 1 and 2 to Player X and Player Y by choosing the Operand "Game Data" > Character > Player's Map X/MapY respectively. This is important because it's going to find out what our region ID is.

in the 3rd Tab of your event commands, under Map, choose Get location info.
Set the variable to whatever Variable you want to hold the ID (it CANNOT be the same
variabl that is holding the x or y data). Choose Designation with variables. Set the X to your X variable and the Y to your Y variable.

Now we just need 2 conditional branches to check for WHEN we need to jump down.
Check if the Number of the Region you're standing on is the right one by opening a
conditional branch on Tab 1 of Event Commands, under Flow Control.

On tab 1 of the Condtional Branch, select Variable (your region ID variable) and check
if it is Equal to (whatever number you're using to designate a jump location. I used 1)

Now INSIDE that conditional branch, place another. This time go to tab 3 and check if
the Down button is being pressed.

Inside that you can put your move route. In Tab 2 of Event Commands under Movement, select "Set Move Route" Choose Jump, and set it to Y+2. This is going to make our character jump 2 squares down. Setting it to Y-2 would make it jump 2 squares up, X+2 would jump 2 to the right, and so on.

and that's it. Now all you have to do is turn the switch on that activates this event. You can do that by having an Autorun event that erases itself after turning the switch on, or however you want to do it. You could even make it where the player can only jump if he has a certain equipment equipped or skill learned, it's all about ingenuity and I hope this interests you enough to get creative!
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
As an alternative try Shaz's script Regional Common events. I'm on my phone so can't do links. You paint the tiles with a region which calls up a common event. You do your jump command in that event. Saves doing lots of individual events.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top