ID:1382563
 
(See the best response by SuperSaiyanGokuX.)
Code:


Problem description: I'm not quite sure how I would change the moving state of an icon.

So let's say I have 2 moving states; one with no name (the no name state also being the default for when you move), and one with the name run.

How would I be able to switch between the moving states?

Ty in advance ^^


Look at the icon_state var under atom in the reference.
Nononono, I know how to do that.

But I mean when you walk with the character, the moving state with no name will be used. However I want to use the moving state with the name (being the one called run).
Best response
IIRC, any icon_state flagged as a movement state will be displayed for movement if it has the same name as the mob's icon_state.

So as long as you have a "run" base icon_state, and you also include a M-flagged movement state also named "run", when you switch your mob to the "run" icon_state, the system will automatically display the "run" movement state for its movement animation.
Huh...I'm gonna re read that to understand it xD But Ty.

Edit - AH. I kinda understand it now. I'll try it :D Thanks.
Ah, sorry, I misunderstood your question.
In response to Raimo
Raimo wrote:
Ah, sorry, I misunderstood your question.

No problem! It's really my fault - I didn't explain clearly. Sorry ^^