I'm trying to use the NPC's behaviors, so they don't look so static. Just standing around doing nothing. I have the blacksmith animation set up in the custom move route as turn down, turn left, turn right, and turn up. However, some animators have 12 animators, while others have three. Or horizontal or vertical. So I don't know what to put in the move route.
VXAce Need help with NPC behaviors
RPG Maker VXAce SupportVertical animations can be updated with the turn in the right direction.
Horizontal animations can be updated if you use the 'stepping animation' option.
As for the 12 animations... I don't think there are event commands or simple scripts calls doing this in what I would call a clean way..
Here is a potential full event solution:
You can have 3 pages in your event: each of them follow the move pattern: look down, left, right, top, then activate trigger to fulfil next page. Each page representing a different column of the animation.
Doing so with pure event calls is doable but requires using triggers.
Horizontal animations can be updated if you use the 'stepping animation' option.
As for the 12 animations... I don't think there are event commands or simple scripts calls doing this in what I would call a clean way..
Here is a potential full event solution:
You can have 3 pages in your event: each of them follow the move pattern: look down, left, right, top, then activate trigger to fulfil next page. Each page representing a different column of the animation.
Doing so with pure event calls is doable but requires using triggers.
sorry, it doesn't work that way.
the horizontal 3 frame animation is basically intended for an automatic walking cycle.
you may use it for something else, but you cannot change the fact that the animation is automatic, ir can only be disabled or set to automatic.
The vertical 4-frame animation is manual and can be controlled by turning in any form you want to control.
a 12-frame animation mixing both is not really possible.
but you can ask for a plugin that allows you to make an animation with more frames.
you'll likely have to reformat the sprite for that however.
the horizontal 3 frame animation is basically intended for an automatic walking cycle.
you may use it for something else, but you cannot change the fact that the animation is automatic, ir can only be disabled or set to automatic.
The vertical 4-frame animation is manual and can be controlled by turning in any form you want to control.
a 12-frame animation mixing both is not really possible.
but you can ask for a plugin that allows you to make an animation with more frames.
you'll likely have to reformat the sprite for that however.
I'm not trying to change it. I'm just trying to understand how they work. How would a six-frame horizon animation work? I mentioned the 12-frame because, in Behavior 4, there are a few with 12 frames, such as the maid, Clown, and Dancer.
not exactly.
the last one (teleportation/vanishing) is the only true 12-frame animation, and you'll basically need either script or twelve event pages to pull that off.
the others are basically four rows of 3-frame-animations to switch between, which is especially visible on the clown and dancer.
in those cases you activate the stepping animation for the automatic cycling between the horizontal three frames, while being able to turn the actor top switch between the four directions manually.
and for the smith for example you need to disable the stepping animation and then select one column that you manually animate by turning, because that are three different people each column.
TIL you can access the horizontal sprites to play the 12 frame animation of the teleport, but you'd need to access the pattern via this scriptlet
Then you can write a custom move route like this(set speed: normal, freq: highest),
.pattern = 0, 1 or 2 for the three horizontal sprites
Edit: NVM it seems to flicker atm when changing direction then pattern right after...
To answer your question though, you just need to turn on the 'Stepping Anim.' box and the character will play the 3 horizontal sprites, eg the maid will sweep the floor,
Code:
class Game_Character
attr_accessor :pattern
end
.pattern = 0, 1 or 2 for the three horizontal sprites
Edit: NVM it seems to flicker atm when changing direction then pattern right after...
To answer your question though, you just need to turn on the 'Stepping Anim.' box and the character will play the 3 horizontal sprites, eg the maid will sweep the floor,
The
pattern attribute is locked by the event page's original pattern when the character is not moving. Hence why I suggested in my first post to use 3 pages (one per pattern) and change pages for display purpose if you were to use the 12 animation character.In general, it is easier to edit a charset to have the same 'pattern' for the same animated character.
Been tinkering with NPC behaviors myself lately. Are you going for simple patrol and dialogue routines or something more dynamic like reacting to player actions or the environment? I’ve had decent luck using behavior trees for more complex stuff. Happy to swap notes if you’re stuck!
I got it working. Thanks.
I just didn't want my NPCs standing around like statues. The only thing close to dynamic was a boy chasing a girl around with a frog. One thing that bothers me is that the NPCs don't turn to face the player when you try to talk to them. That might require some type of conditional branch. Where they stop doing the animation and use the normal sprite to face them, then go back to the animation when they are done. I almost have it working right.
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-npc-behaviors.178096/