Pathfinding Animations and angles

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
3D Car Pack 1
$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
  • I'm trying to get an NPC to change animations depending on the direction they're walking, and while I've found a topic that mentions this same problem all of the example projects are no longer available so i cant seem to figure this out.

    The examples mention using the pathfinding angle and basing the animation off of this, and while that makes sense the pathfinding angles do not. I have it set up to show what the number is so I can figure out which animation to tie to what number but the number range doesn't translate to a simple left-right, which is all I'm trying to do.

    I just want it to point left when moving left and point right when moving right.

  • System > Is between angles or System > Is within angle

    Either will do the job.

    Pathfind angle is within 90° of 0° = right, else left

  • see, while logically that makes sense it still doesn't change the animation whatsoever. I've tried both system-between/within angles and sprite between/within angles and neither changes the animation with movement.

    I might be setting the events up wrong though, if you had a visual example it might help.

    I don't know if it would help you much to see the project I'm working on but here it is. (its a chicken farming sim)

    https://drive.google.com/file/d/1dxulHzLCFZKShi960EPf-5XfaK0sRxkD/view?usp=sharing

  • That's because you are comparing the chicken sprites angle, not the angle the sprite is moving at with the behavior.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay, one step closer! i appreciate you showing me, and I've implemented the expression. it mostly works now, i'm only having issues with chickens newly spawned in (clicking the dark green button when you have the correct amount of money {10} spawns a chicken) no clue why that is bugging but i understand the angles better now, Thank you!

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