4 way animation

Get help using Construct 2

Post » Thu May 03, 2012 10:20 pm

I think the problem i have is very simple but i searched the forum but couldn't find a solution.

I want to have a different animation playing under each arrow key.
I got this working, but when i hold two arrow keys at the same time the animation freezes. I would also like the idle animation to face the last direction i walked (requires another animation to be made ofcourse).

I have three animations, one for horizontal movement, one for vertical movement and one for idle. I flip the horizontal one.

I just can't figure out the best way of doing this.sami13372012-05-03 22:43:21
B
6
S
1
G
4
Posts: 66
Reputation: 1,532

Post » Thu May 03, 2012 11:08 pm

Last edited by Yann on Sun Sep 14, 2014 8:34 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu May 03, 2012 11:48 pm

Wow! That's incredible. I don't understand the math but i think i understand the other stuff now.
This is just want i was looking for. Very elegant but not too complicated.
Thanks.sami13372012-05-05 01:20:20
B
6
S
1
G
4
Posts: 66
Reputation: 1,532

Post » Fri May 04, 2012 10:44 am

The "math" just converts a 0 to 360 range into a 0 to 7 range to select the corresponding animation.Yann2012-05-04 10:44:42
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to How do I....?

Who is online

Users browsing this forum: Matthew de, signaljacker and 0 guests