[Solved] How do I get animation to face correct direction?

0 favourites
  • 4 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • See the code below. No matter what variations of the arrow and/or angle settings I try, I cannot get the arrow to face toward the target. It moves toward the target as it should however the Thor damn arrow is always facing backwards. Yes, I tried arrow.SetAngle on both "Yes" and "No". Doesn't matter.

    I just do not and cannot understand what I'm doing wrong

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • set arrow.bullet.angleofmotion to angle(arrow.X,arrow.Y,target.X,target.Y)

    And the bullet behavior need to have rotate object on

  • set arrow.bullet.angleofmotion to angle(arrow.X,arrow.Y,target.X,target.Y)

    And the bullet behavior need to have rotate object on

    You described the settings exactly as they are. You can see the bullet.angleOfMotion in the code above. I have bullt.SetAngle property set to "yes". Token.X/Y are the target coords.

    The arrow moves correctly from shooter toward target. That part works, but the arrow animation is always facing exactly opposite regardless of shooting from left to right or right to left. Always backwards.

  • I fixed it. The problem was the original animation was not facing right. It seems all of the C2 code expects the starting position to be facing right. I guess

    It works now.

    Thanks again lennaert

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