Diagonal Movement 8 Way Direction Animation

Discussion and feedback on Construct 2

Post » Mon Feb 25, 2013 4:35 pm

*Wow, I could've sworn I had clicked on the How Do I section - if a mod could please move, first post and it was a blunder*

Hey everyone,

Did a few searches and didn't quite find what I'm aiming for.

My 2d sprite has animation for all 8 directions (cardinal 4 and diagonals), and all have been set up properly in its animations. However, the problem I'm having is that the diagonal movement animation doesn't play through. It is set to loop.

The event handling I figured would work is the following -



I'm thinking the issue is with the bottom event setup. Perhaps I'm interrupting the animation using both left and up? I'm kind of lost.

Thoughts?

Many thanks,

Baschbaschit2013-02-25 16:39:21
B
5
Posts: 11
Reputation: 697

Post » Mon Feb 25, 2013 6:31 pm

I found this piece of info here -

http://www.scirra.com/forum/sprite-movement-8-dir-troubles_topic47201.html

Anyone know how I would add controller support?
B
5
Posts: 11
Reputation: 697

Post » Mon Feb 25, 2013 6:45 pm

Can you post an example file. I think I know what you want.

Also, just a quick critique. Make a dead zone for the joystick, otherwise you will get "drifting" if the stick is not perfectly calibrated.

make the low range -10, and the high range +10. can be lower or higher, just depends on the player's preferences.
B
28
S
8
G
4
Posts: 767
Reputation: 5,940

Post » Mon Feb 25, 2013 9:19 pm

So I've made some progress but I can only get half the range working using these events. The top directions work, but any time I try to add Down-Left or Down-Right, something breaks. Any thoughts?

B
5
Posts: 11
Reputation: 697

Post » Tue Feb 16, 2016 12:30 am

Messing with the sensitivity on each axis got it to work for me
Image
B
4
Posts: 1
Reputation: 202


Return to Construct 2 General

Who is online

Users browsing this forum: bilgekaan, digitalsoapbox, shinichild, TRMG and 9 guests