Got it 🙂
From what I understand, your code assumes that I have only one Player sprite, but actually I have a PlayerMove sprite (which handles movement) and a Player sprite (which handles animations). They are already connected through events.
Would it be possible to adapt your code to this situation?
How would it look?
Could you show me a working example please?
When the button is released, the character stops and switches to the "Idle" animation.
While moving, it plays "WalkSouth" or "WalkNorth" depending on the direction.
And I was thinking, I’d like to improve this by adding a small feature:
👉 If the mouse is more than 250 pixels away from the player, the character should run instead of walk — switching to a "RunSouth"/"RunNorth" animation and moving faster.
👉 If the mouse is closer than 250 pixels, the character should walk normally.
I’d love to implement this
Thanks in advance for any tips or examples you can share! 🙏