Is there a way to have an Actor keep playing the walking animation even when not moving? I know you can do it for events... Oh and it would need to be only one actor, all the others would just stand still lke normal.
Can you make an Actor keep walking while not moving?
RPG Maker VXAce SupportTo make the PC do the walking animation while standing still, you'd need to use the Set Move Route command to turn stepping animation on (and off again when you want them to stop the animation while standing still).
Attaching it to a single actor is a bit more difficult, and a script would be the best way to do it. Its complexity would be determined by whether you have followers turned on and whether you allow the player to change the party formation. With no followers, the only actor you see on the screen is the party leader. And the player can change around who is the leader, so you might have stepping animation turned on, then they swap leaders, and suddenly the leader is someone who you DON'T want to animate. If you have followers turned on and the player can change formation, then it could be any of the 4.
Are you using any custom party / follower scripts?
Attaching it to a single actor is a bit more difficult, and a script would be the best way to do it. Its complexity would be determined by whether you have followers turned on and whether you allow the player to change the party formation. With no followers, the only actor you see on the screen is the party leader. And the player can change around who is the leader, so you might have stepping animation turned on, then they swap leaders, and suddenly the leader is someone who you DON'T want to animate. If you have followers turned on and the player can change formation, then it could be any of the 4.
Are you using any custom party / follower scripts?
I'm not using followers, but the Player can change who the leader is, which is why it would need to just be that one character. And no, I'm not using any scripts for the party or followers
In that case just use the movement option to turn on the Stepping Animation for the player.
You can't, because when you switch leaders it needs to change depending on who the leader is. And you'd have to modify the scripts for that or use a parallel process common event (yuck!)
Here is a less-than-elegant solution, where you hardcode it into your scripts. It's all I can come up with at the moment (I'm at work, on lunch). If you want something nicer, say so, and I'll update it to get the numbers from the Actor's note boxes.
Also, I'm writing this at work, but can't test it. So I HOPE I haven't made any errors. I'll check back when I get home to see if there are any issues and will fix them then.
Add this to a new script slot at the bottom. Change the STEPPING_ACTORS array to contain the id of each actor you want to have stepping animation:
Here is a less-than-elegant solution, where you hardcode it into your scripts. It's all I can come up with at the moment (I'm at work, on lunch). If you want something nicer, say so, and I'll update it to get the numbers from the Actor's note boxes.
Also, I'm writing this at work, but can't test it. So I HOPE I haven't made any errors. I'll check back when I get home to see if there are any issues and will fix them then.
Add this to a new script slot at the bottom. Change the STEPPING_ACTORS array to contain the id of each actor you want to have stepping animation:
Code:
class Game_CharacterBase def set_stepping(value) @step_anime = value endendclass Game_Party < Game_Unit alias shaz_add_actor add_actor alias shaz_remove_actor remove_actor alias shaz_swap_order swap_order # List your actor IDs to have stepping animations here. STEPPING_ACTORS = [3, 5] def add_actor(actor_id) shaz_add_actor(actor_id) check_leader_stepping end def remove_actor(actor_id) shaz_remove_actor(actor_id) check_leader_stepping end def swap_order(index1, index2) shaz_swap_order(index1, index2) check_leader_stepping end def check_leader_stepping $game_player.set_stepping(STEPPING_ACTORS.include?(leader.id)) endend
I might be doing something wrong, as I haven't used many scripts before, but I can't get it to work. When I try to change what actor is the party leader it comes up with
Script " line 31: NoMethodError occurred. Undefined method 'actor_id' for # <Game_Actor:0x716405c>
(The numbers at the end change depending on which actor I try to make the leader,but the rest of the error code is the same.)
Script " line 31: NoMethodError occurred. Undefined method 'actor_id' for # <Game_Actor:0x716405c>
(The numbers at the end change depending on which actor I try to make the leader,but the rest of the error code is the same.)
Try changing this:
to this:
Code:
$game_player.set_stepping(STEPPING_ACTORS.include?(leader.actor_id))
Code:
$game_player.set_stepping(STEPPING_ACTORS.include?(leader.id))
That fixed it 🙂Thanks for the help
No worries. Oh, also, name your script - in the panel on the left with all the script names. That way, if there's a bug, it will tell you which script it's in (in your message there, it didn't). It will also make it easier to see which slots have scripts and which are just empty for spacers.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/can-you-make-an-actor-keep-walking-while-not-moving.25694/