#Animation Script not working properly

1 messages · Page 1 of 1 (latest)

soft bolt
#

I'm trying to make a basic movement and animation script for a top down view 2d game but the game never plays my idle animations , any ideas why or other ways i could script that ?

humble island
#

What happens if you print direction in process ?

soft bolt
#

Everything works correctly, 0,0 when i don't move and 1 or -1 when i do

humble island
#

Oh found it

#

When moving you do PlayerFacingDirection == direction

#

Instead of using a single =

#

So you're checking if they're equal (and then do nothing with the result) instead of changing the value of PlayerFacingDirection

soft bolt
#

thank you

#

Tabouret le goat