Hello again,
I'm having trouble getting an event to change direction. For example, I want event 1 to turn to face upwards. I tried this, but it didn't work.
So then I tried this:
That works, but only if put the script into the event editor. If I have the same script in my actual .js file, it doesn't work.
I'm having trouble getting an event to change direction. For example, I want event 1 to turn to face upwards. I tried this, but it didn't work.
JavaScript:
$gameMap.event(1).setDirection(8);
So then I tried this:
JavaScript:
var turnRoute = {
list: [{code: 19, indent: null}, {code: 0}],
repeat: false,
skippable: false,
wait: true
}
$gameMap.event(1).forceMoveRoute(turnRoute);
That works, but only if put the script into the event editor. If I have the same script in my actual .js file, it doesn't work.