Let's say I have a simple 3-frame idle animation for an SV actor (like is default in rpg maker MV). I want to make it so that this is the only animation that plays in battle for that actor. So there's none of the other 17 animations (thrust/item/damaged/etc), just idle. The obvious solution is to just copy+paste the idle animation so that every animation is the same. The problem with that is that it resets the animation to the first frame every time something happens to the actor, which looks really off.
Does anyone know how to make it so that the idle animation for an actor plays continuously, and it ignores anything that would tell it to change?
EDIT: Well, I think posting my problems on this forum makes me more motivated to solve them myself or something, because I figured it out.
In rpg_objects.js, search for 'request motion' and comment out every instance of it that could possibly occur in your game except for the ones you want (in my case, just 'walk' and 'dead'). Do the same for 'startMotion' in rpg_sprites. Finally, in yanfly's BattleEngineCore, go to the function Sprite_Actor.prototype.refreshMotion and tell it to return immediately in all cases (I just added the line "return" right at the start). This tells the game not to 're-start' your idle animation every time an animation would normally change.
Does anyone know how to make it so that the idle animation for an actor plays continuously, and it ignores anything that would tell it to change?
EDIT: Well, I think posting my problems on this forum makes me more motivated to solve them myself or something, because I figured it out.
In rpg_objects.js, search for 'request motion' and comment out every instance of it that could possibly occur in your game except for the ones you want (in my case, just 'walk' and 'dead'). Do the same for 'startMotion' in rpg_sprites. Finally, in yanfly's BattleEngineCore, go to the function Sprite_Actor.prototype.refreshMotion and tell it to return immediately in all cases (I just added the line "return" right at the start). This tells the game not to 're-start' your idle animation every time an animation would normally change.