Forum rules - please read before posting.

"GetSpriteDirection" issue when using the "frame flipping option"

I set "frame flipping" under "Standard 2D animation" section of my player script to "Left mirrors Right" so that I can use the mirrored version of "Walk_R" animation as my "Walk_L" animation.

The problem is, "AC.KickStarter.player.GetSpriteDirectionInt()" or "AC.KickStarter.player.GetSpriteDirection()" methods return "Right" even if my player is facing left.

How can I get the correct player-direction while using "frame flipping"?

Comments

  • The problem is, "AC.KickStarter.player.GetSpriteDirectionInt()" or "AC.KickStarter.player.GetSpriteDirection()" methods return "Right" even if my player is facing left.

    That's actually as intended - as right-facing sprites are used in place of left-facing, the direction of the sprite (not the character himself) will be right.

    However, this does raise a good point. I'll see about adding a separate function, or an "ignore frame-flipping rule" parameter in the above, in the upcoming update.

  • Thank you Chris. For now, I'll be using multi-direction animations until next update.

  • edited May 2019

    I love this forum!

    Chris, was this ever implemented? For I have the same issue.

    EDIT:
    I see it was added in 1.67
    https://adventurecreator.org/forum/discussion/8634/version-1-67-point-triggers-and-all-round-improvements

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.