How do I make 8 direction animations (W/ 4 animations)?

Get help using Construct 2

Post » Thu Nov 27, 2014 7:21 pm

This is my events list
Image
I have tried to make an animation for walking and staying work, but I have some issues.
Let me explain the problem here, when pressing left and then up in the same time, it will go diagonal (naturally) and the animation is going to be the left walking one, but when I release the left key, the character is going up, yet the animation is going to be the Idle left animation, how can I fix this? I know 100% why this is happening, but I just don't see any way around it, even though I know there is one, and IF I had to make some black magic with HTML 5, then sorry, I only know C++ and putting codes in construct 2 is still something that I'm unfamiliar with.
Another thing I tried is to make the animations play depending on the angle the sprite is moving, but it doesn't work at all. Image what's the problem here?
B
3
Posts: 5
Reputation: 189

Post » Thu Nov 27, 2014 8:16 pm

I normally set the animations based on the angle of movement, not the key presses.

Check this example:

[EDIT] Corrected some bugs in the file.
8dir_animations_example.capx


Cheers!
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
16
S
4
G
1
Posts: 417
Reputation: 2,315

Post » Fri Nov 28, 2014 6:14 pm

brunopalermo wrote:I normally set the animations based on the angle of movement, not the key presses.

Check this example:

[EDIT] Corrected some bugs in the file.
8dir_animations_example.capx


Cheers!


Thanks a lot! I guess the problem with my second method were the values for the angles.
B
3
Posts: 5
Reputation: 189


Return to How do I....?

Who is online

Users browsing this forum: tdcostas and 10 guests