- Joined
- Oct 24, 2015
- Messages
- 6
- Reaction score
- 2
- First Language
- Serbian
Hey,
I need a line of code for my Conditional branch to check if the position of Player is matching the position of an event.
I'm not familiar with javascript, but by skimming through the Script Call list, and picking up few bits here and there I've got something which I think is pretty close to what I need (except it's not working - but it'll give you a general idea):
$gameMap.eventIdXy(this.x, this.y) == $gameMap.actorIdXy($game_actors.actor[1].x, $game_actors.actor[1].y)
I'm obviously not checking for Player's id properly (and possibly anything for that matter XD).
Anyways, any help is appreciated.
~Thanks in advance!
I need a line of code for my Conditional branch to check if the position of Player is matching the position of an event.
I'm not familiar with javascript, but by skimming through the Script Call list, and picking up few bits here and there I've got something which I think is pretty close to what I need (except it's not working - but it'll give you a general idea):
$gameMap.eventIdXy(this.x, this.y) == $gameMap.actorIdXy($game_actors.actor[1].x, $game_actors.actor[1].y)
I'm obviously not checking for Player's id properly (and possibly anything for that matter XD).
Anyways, any help is appreciated.
~Thanks in advance!

