Trigger animation with 8 directional movement

Get help using Construct 2

Post » Tue May 29, 2012 12:42 am

Hi,

I'm brand spanking new at C2 and I have just started making my first game. I'm trying to trigger a simple walking animation with the 8 directional movement control. I made my animation start upon loading the game by getting it to do a constant loop, but the loop starts and never stops and while it looks great when I'm actually moving the sprite, it looks like my sprite is a retarded dancer when It's supposed to be standing still.

I know that this is probably basic stuff, but if somebody could hold my hand through this one I would be forever grateful, thanks.
B
4
Posts: 18
Reputation: 811

Post » Tue May 29, 2012 2:03 am

Use the 8Direction Is Moving condition on your sprite to determine which animation to play. You can also use the 8Direction Speed to determine the animation. Here is a simple example that demonstrates how to do it.

ButterflyFly.capx
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Post » Tue May 29, 2012 5:16 am

Works great kittiewan!!! Thanks for that.
B
4
Posts: 18
Reputation: 811


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas, theosciandra and 16 guests