my if else condition wrong?

0 favourites
  • 3 posts
From the Asset Store
Be quick and choose whether the shown equation is right or wrong.
  • I have 2 different colored unicorn, each has 2 direction, left right.

    So I have 4 animation:

    Red unicorn facing Left

    Red unicorn facing Right

    Blue unicorn facing Left

    Blue unicorn facing Right

    I remember my last X position so that i can see which direction the unicorn is moving toward (left or right, ignoring vertical motion).

    See attached.

    I don't understand why but "R_Left" animation is always playing even when unicorn is moving toward right.

    What is wrong with my set up?

  • As i understand it the 0 x and 0 Y is at top left of the layout so anything Greater then will alway be right direction.

    Try fliping the animation direction to see if that helps.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have 2 different colored unicorn, each has 2 direction, left right.

    So I have 4 animation:

    Red unicorn facing Left

    Red unicorn facing Right

    Blue unicorn facing Left

    Blue unicorn facing Right

    I remember my last X position so that i can see which direction the unicorn is moving toward (left or right, ignoring vertical motion).

    See attached.

    I don't understand why but "R_Left" animation is always playing even when unicorn is moving toward right.

    What is wrong with my set up?

    I'm not sure which behaviour you are using for the movement of the unicorn and if you are mirroring/rotating the sprite..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)