Face direction of motion

8022apple

  • Posts: 19
I used the Face direction of motion in the library. I set the facing to left (because my actor is facing left), and I set the Idle Threshold to 1. But my actor won't face the direction its moving! Can anyone help me, please? Thank you
BTW, Im currently making a game which a bunch of fish are swimming in different directions, so my problem as you read above is that they won't face the direction they are swimming toward to.

8022apple

  • Posts: 19
Can anyone help me please?

coleislazy

  • *
  • Posts: 2607
You probably don't want to use this behavior for what you're trying to accomplish. It rotates the actor to face its direction, so your fish would be upside-down when they move right.

Instead, you'll need a left and right animation for the actor (you can just copy the left animation and flip it with the button in the lower-right) and a way to switch them when moving. Check out some of the movement behaviors for examples on how to switch animations based on movement.

8022apple

  • Posts: 19
Thanks Coleislazy, I'll try it out!

8022apple

  • Posts: 19
But Coleislazy, my fish can swim 360 degrees, not just left, right, up or down!