Hello all, I am trying to use scripts to animate my player using all 12 walking frames, but something seems to have gone wrong. When I do this for other events, it works fine, but when I try to use $gamePlayer in the change pattern script, nothing happens to my player. I was thinking that maybe $gamePlayer might not be the correct thing to use, but I am not sure. My event's contents are as follows:
Code:
◆Set Movement Route:Player (Wait)
: :◇Script:$gamePlayer._originalPattern = 0; $gamePlayer.resetPattern(); $gamePlayer.setDirection(2);
: :◇Wait:30 frames
: :◇Turn Left
: :◇Wait:30 frames
: :◇Turn Right
: :◇Wait:30 frames
: :◇Turn Up
: :◇Wait:30 frames
: :◇Script:$gamePlayer._originalPattern = 1; $gamePlayer.resetPattern(); $gamePlayer.setDirection(2);
: :◇Wait:30 frames
: :◇Turn Left
: :◇Wait:30 frames
: :◇Turn Right
: :◇Wait:30 frames
: :◇Turn Up
: :◇Wait:30 frames
: :◇Script:$gamePlayer._originalPattern = 2; $gamePlayer.resetPattern(); $gamePlayer.setDirection(2);
: :◇Wait:30 frames
: :◇Turn Left
: :◇Wait:30 frames
: :◇Turn Right
: :◇Wait:30 frames
: :◇Turn Up
: :◇Wait:30 frames