@PK8: Is there a way to use variables as values for X and Y?
Jump to a specific tile (or coordinate)
RPG Maker VXAce Supportpjcr16, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
use $game_variables[id] instead of numbers for x and y, or put your formula directly in the script call if possible
@Celianna: Sorry, I only double posted because PK8 already saw my "Thanks!" post, so if I edit it, the topic won't be updated and there's a chance he will never look again. I promise this won't happen again.
@mobychan: Thanks!
@mobychan: Thanks!
Are you trying to move the event to a new location on the map? Say you have an event at X:10/Y:10 and you want to move it down one square to x:10/Y:11?!
If this is the case, on page 2 of the Event Commands list under movement you will see "Set event Location...". You can not change maps, but this will change the event to a location of your chosing.
If this is the case, on page 2 of the Event Commands list under movement you will see "Set event Location...". You can not change maps, but this will change the event to a location of your chosing.
Nope, he doesn't want to do that.
Thanks for your help, but please read the entire thread before replying.
it is easy if im reading what your wanting to do.
set a control variable from 0 ~ 1
then conditional branch when equal to 0
set event location (pick a location)
else
conditional branch when equal to 1
set event location (pick a different location)
set a control variable from 0 ~ 1
then conditional branch when equal to 0
set event location (pick a location)
else
conditional branch when equal to 1
set event location (pick a different location)
I get an error whenever I use $game_variables[id]
Code:
Script 'Game_Interpreter' line 1411:SyntaxError occurred.
unexpected '\n', expecting '='
Code:
$game_map.events[3].jump_pos
($game_variables[96],$game_variables[97])
it's a problem with breaks in the script call, try changing it to this:
Code:
$game_map.events[3].
jump_pos($game_variables[96],$game_variables[97])
I'm a little confused, do you want an event (creature) to jump to a certain area or do you want an event (cutscene) to have the camera jump to a different area?
Guys, we already went through this. He wanted an event to JUMP (not transfer/teleport) to another coordinate on the map, which I already provided the script call for and resolved.
Like Mobychan said. Or you can also try:
Like Mobychan said. Or you can also try:
Code:
$game_map.events[3].jump_pos(
$game_variables[96],$game_variables[97])
Sorry, my bad D: This cat needs to pay more attention
Original thread: https://forums.rpgmakerweb.com/threads/jump-to-a-specific-tile-or-coordinate.2631/