Animation problem

Get help using Construct 2

Post » Tue Oct 02, 2012 9:39 pm

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. :)ghostwheel2012-10-02 21:41:02
B
16
S
6
Posts: 33
Reputation: 1,620

Return to How do I....?

Who is online

Users browsing this forum: michaelverdi, Yahoo [Bot] and 26 guests