Run animation

Get help using Construct 2

Post » Thu Nov 24, 2011 2:34 pm

Hi.

I am wondering if you could help me with an animation problem.

I have those animation :

Default (1 frame)
Run(2 frame)

How can i make the player to run?

I do this an it dosen't work , the animation goes till the end then it stops and it dosen't repeat while left arrow is pressed;

Action : On right arrow pressed
Event : Player - Set animation "Run";

This event repeat the animation but one time.

How can i make the player to run?

What events and actions do i need... View Post
B
3
G
1
Posts: 17
Reputation: 584

Post » Thu Nov 24, 2011 2:59 pm

Did you set the animation to loop in the animation editor? :D
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Thu Nov 24, 2011 4:18 pm

aaa no , how?
B
3
G
1
Posts: 17
Reputation: 584

Post » Thu Nov 24, 2011 5:03 pm

Ok , i found the loop and now it works but i have one more question :

When i press left arrow and right arrow it runs on place .
When i press right arrow and then i press left arrow and i release the right arrow it runs backward.

How can i corect those?
B
3
G
1
Posts: 17
Reputation: 584

Post » Thu Nov 24, 2011 5:04 pm

Thankyou Ize.
B
3
G
1
Posts: 17
Reputation: 584

Post » Thu Nov 24, 2011 9:50 pm

Hi jolgau I had the same problem with new build r69 and answer is here:

http://www.scirra.com/forum/ashley-please-auto-mirror property_topic46392.html
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Fri Nov 25, 2011 9:35 am


B
14
S
2
G
5
Posts: 5
Reputation: 3,097

Post » Fri Nov 25, 2011 12:38 pm

Thanks alot.
B
3
G
1
Posts: 17
Reputation: 584

Post » Fri Nov 25, 2011 4:27 pm

@devilsgarage: in event 2 you absolutely don't need the "System every tick" condition.
By default, the "Keyboard D is down" is tested every tick.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Nov 26, 2011 6:10 am

woops, My bad.
Thanks for spotting that. I'm super new to programming games
B
14
S
2
G
5
Posts: 5
Reputation: 3,097

Next

Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, farfetchd83, mjj1990 and 4 guests