Forum rules - please read before posting.

Check Character Direction Script

Hi,

On specific actions I want to check which direction character is facing and then depending on direction, force the character to face a certain way, then afterwards release, ie if RD face R. How would I go about this please?

Comments

  • If your character uses Sprite Unity Complex mode, you can have an Integer paremeter in the Animator that represents their facing direction.

    Attach the Link Variable To Animator component to connect this parameter to a Global Integer variable that you can then read in ActionLists.

  • I am using spine animation

  • You can read the character's GetSpriteDirectionInt function and transfer it to a variable through script, in that case.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.