RPG Maker VX Ace

RPG Maker VX Ace

View Stats:
dirtgon Dec 26, 2021 @ 1:19pm
How to make an event jump to a specified location?
I'm making a mapped boss fight where I want the boss to jump to a position after chasing the player. I know I could check every single tile to see if the boss is standing on it, but that would be extremely tedious. Is there any way to use variables or coordinates to make this easier?
< >
Showing 1-10 of 10 comments
dirtgon Dec 29, 2021 @ 9:43am 
I couldn't get it to work.
Hajami Jan 5, 2022 @ 2:20am 
I remembered something and got it to work.


In the Eventcommand - "Set Move Route" - Choose Script - Select Event Id2 as target for the Move Command,it represents the Boss in my Scenario. 6 and 4 are the Mapcoordinates of where the Boss needs to jump to.
Insert the following:

jump( 6 - $game_map.events[2].x, 4 - $game_map.events[2].y)
Last edited by Hajami; Jan 7, 2022 @ 2:39am
dirtgon Jan 30, 2022 @ 1:19pm 
Ack, I finally figured it out! Thank you so much!

(I'll give you credit for the script at the beginning of the game.)
Hajami Feb 1, 2022 @ 2:03am 
No need for Credits. But thanks for letting me know that it worked for you. XD
dirtgon Feb 18, 2022 @ 1:57pm 
Hi, I am bringing this up again because I now need the player to jump to a specified position. How do I change the script to do this?
LegoNenen Apr 3, 2022 @ 12:15am 
You just change the X and Y numbers to what you need.


( WHERE THE X NUMBER GOES - $game_map.events[2].x, WHERE THE Y NUMBER GOES - $game_map.events[2].y)
Last edited by LegoNenen; Apr 10, 2022 @ 8:44pm
Cryptic Apr 8, 2022 @ 8:42am 
Originally posted by Nenen:
You just change the X and Y numbers to what you need.

( WHERE THE X NUMBER GOES - $game_map.events[2].x, WHERE THE Y NUMBER GOES - $game_map.events[2].y)
he said the player

the player is not $game_map.events[2]
Last edited by Cryptic; Apr 8, 2022 @ 8:42am
LegoNenen Apr 10, 2022 @ 8:42pm 
Originally posted by Corrosion:
Originally posted by Nenen:
You just change the X and Y numbers to what you need.

( WHERE THE X NUMBER GOES - $game_map.events[2].x, WHERE THE Y NUMBER GOES - $game_map.events[2].y)
he said the player

the player is not $game_map.events[2]

Right! *forehead slap* (I need to pay a little more attention to details)
Though I'm unsure why OP couldn't use the original thread suggested to find out, since in that case it seem very similar to what he asked.

One other way is to simply use the scriptcall: $game_player.moveto(x, y)
Last edited by LegoNenen; Apr 10, 2022 @ 8:43pm
dirtgon Apr 24, 2022 @ 5:11pm 
(Sorry for late reply)
Oh, that's how it works. Thank you!
< >
Showing 1-10 of 10 comments
Per page: 1530 50