Bi-directional walking animation for heroes and monsters

Started by gzuk, October 25, 2024, 08:07:29 PM

Previous topic - Next topic
Hi, is there any way to have only two-directional heroes and monsters, who are only auto-flipped on the X axis for left and right, but retain their left and right animation and orientation when walking up and down?

In the Quest Editor, it looks like you always have to specify fixed animations for up and down. In theory, you could just copy the left and right animations, but the problem with that is that when the hero walks e.g. right and then up, or just up-right, then he will suddenly be orientated left, even though he is walking up-right, i.e. it's the false direction then.

Is there a way to override that behavior in the Lua scripts, or in the C++ code?

(The reason I'd like to try this is that it saves artwork, even though it may not look so nice.)

Thanks for an answer!