When you control the mob, moving animation provided by SpriteMovementComponent is working perfectly. When the mob is controlled by the game, movement animation not shown.
Reproduction
See an attached video
Screenshotshttps://github.com/user-attachments/assets/313823f4-4377-4a04-9d00-73faf485d189Additional context
Seems like the problem happens because in SpriteMovementSystem the game subscribes only for user's input and not for mob movement event. Do we have one, btw?
SubscribeLocalEvent<SpriteMovementComponent, MoveInputEvent>(OnSpriteMoveInput);
Just to let you know. I will be able to prepare PR for that fix if you give me a tip how to detect Mob movements and direction. Unfortunately, I couldn't find anything myself.
Description
When you control the mob, moving animation provided by SpriteMovementComponent is working perfectly. When the mob is controlled by the game, movement animation not shown.
Reproduction See an attached video
Screenshots https://github.com/user-attachments/assets/313823f4-4377-4a04-9d00-73faf485d189 Additional context Seems like the problem happens because in SpriteMovementSystem the game subscribes only for user's input and not for mob movement event. Do we have one, btw?
SubscribeLocalEvent<SpriteMovementComponent, MoveInputEvent>(OnSpriteMoveInput);