Hi all,
I am having some trouble using a Move Route script call to make the player turn toward an event.
When using an eventID, such as:
$gamePlayer.turnTowardCharacter($gameMap.event(2))
everything works just fine; however, for my purposes I need the player to turn towards whatever event is currently active and calling the move route (on the player).
I tried as follows:
$gamePlayer.turnTowardCharacter($gameMap.event(this._eventId))
as well as:
$gamePlayer.turnTowardCharacter($gameMap.event(this.eventId()))
Either case causes the following error:
" Cannot read property 'x' of undefined'
Really getting boggled with this. Will be much grateful for help.
Thank ya'll in advance!
I am having some trouble using a Move Route script call to make the player turn toward an event.
When using an eventID, such as:
$gamePlayer.turnTowardCharacter($gameMap.event(2))
everything works just fine; however, for my purposes I need the player to turn towards whatever event is currently active and calling the move route (on the player).
I tried as follows:
$gamePlayer.turnTowardCharacter($gameMap.event(this._eventId))
as well as:
$gamePlayer.turnTowardCharacter($gameMap.event(this.eventId()))
Either case causes the following error:
" Cannot read property 'x' of undefined'
Really getting boggled with this. Will be much grateful for help.
Thank ya'll in advance!