Move()
if(usr.icon_state == "Player Moving")
..()
return
else
usr.icon_state = "Player Static"
..()
...But of course this isn't working. Anyone know how to do this? Thanks.
ID:273665
Dec 8 2010, 1:50 am
|
|
In my project I would like my character to use a different icon state for when it's moving and when it's still. I've tried using this :
Move() ...But of course this isn't working. Anyone know how to do this? Thanks. |
Dec 8 2010, 9:08 am
|
|
In the icon editor, have two states, one for standing and one for moving. Have them both use the same name, but for the moving one, when changing its name, be sure to choose the option 'Movement State'. Now, whenever your character is moving, it will use the movement state. When it stops, it will use the standing state.
|
In response to Warlord Fred
|
|
Thank you so much, I didn't know you could do that with 2 states. Incredibly helpful.
|