Animation problem

0 favourites
  • 1 posts
From the Asset Store
Ninja char for your game! Make your own Shinobi game with this art.
  • I'm using 8 way movement with an event for mouse click movement. Click on a spot on the visible layout, the player sprite moves there. It's an isometic-ish top down view so I have to use 8 different animations, one for each direction. It works almost perfectly except for one spot. If I click off to the right and slightly down, about a 2 degrees or so, the animation doesn't play for that direction. Instead, whatever the last animation was that was playing plays instead. It's looks glitchy and dumb.

    I don't really understand how the expression works as someone else helped me with it. I had to mess around with it quite a bit to get it to work as well as it does through trial and error. I'm afraid I can't do any more with it.

    This is the expression: "Animation" & floor((angle(Mouse.X,Mouse.Y,Player.X,Player.Y) + 180 + 22.5) / (360 / 8))

    Here's what it looks like in Construct 2.

    I'd put up the capx but someone told me not to put up files that use 3rd party plugins. If you really need it, please let me know.

    Thank you. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)