Jump to a specific tile (or coordinate)

Pjcr16

Villager
Member
Joined
Jun 3, 2012
Messages
15
Reaction score
1
First Language
Filipino
Primarily Uses
@PK8: Is there a way to use variables as values for X and Y?
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
pjcr16, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
 

mobychan

CodeMaster
Veteran
Joined
Mar 23, 2012
Messages
297
Reaction score
45
First Language
German
Primarily Uses
use $game_variables[id] instead of numbers for x and y, or put your formula directly in the script call if possible
 

Pjcr16

Villager
Member
Joined
Jun 3, 2012
Messages
15
Reaction score
1
First Language
Filipino
Primarily Uses
@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!
 
Last edited by a moderator:
  • Like
Reactions: PK8

Linkzell

High Level n00b >_
Member
Joined
Jun 23, 2012
Messages
68
Reaction score
2
First Language
English
Primarily Uses
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.
 

Bird Eater

Boredom is just another thing you want to avoid
Veteran
Joined
Mar 22, 2012
Messages
272
Reaction score
27
First Language
Dutch
Primarily Uses
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.
Nope, he doesn't want to do that.

Thanks for your help, but please read the entire thread before replying.
 

BlueDemon

Demon
Member
Joined
Jun 23, 2012
Messages
26
Reaction score
1
First Language
English
Primarily Uses
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)
 

Pjcr16

Villager
Member
Joined
Jun 3, 2012
Messages
15
Reaction score
1
First Language
Filipino
Primarily Uses
use $game_variables[id] instead of numbers for x and y, or put your formula directly in the script call if possible
I get an error whenever I use $game_variables[id]



Code:
Script 'Game_Interpreter' line 1411:SyntaxError occurred.

unexpected '\n', expecting '='
I used it in a script call.



Code:
$game_map.events[3].jump_pos
($game_variables[96],$game_variables[97])
 
Last edited by a moderator:

mobychan

CodeMaster
Veteran
Joined
Mar 23, 2012
Messages
297
Reaction score
45
First Language
German
Primarily Uses
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])
 

RyanA

Happy Cat
Veteran
Joined
Jun 28, 2012
Messages
2,423
Reaction score
230
First Language
English
Primarily Uses
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?
 
Last edited by a moderator:

PK8

I sense there's something in the wind...
Veteran
Joined
Mar 17, 2012
Messages
1,220
Reaction score
152
Primarily Uses
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:



Code:
$game_map.events[3].jump_pos(
$game_variables[96],$game_variables[97])
 

RyanA

Happy Cat
Veteran
Joined
Jun 28, 2012
Messages
2,423
Reaction score
230
First Language
English
Primarily Uses
Sorry, my bad D: This cat needs to pay more attention
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top