Controlling player animation

Get help using Construct 2

Post » Sat Oct 08, 2011 5:57 pm

I am still playing catch up with C2, and i am struggling to work out how to implement animations for a player using platform behaviour.
Ive managed to work out how to import the individual frames but i am stuck.

Is there any tutorials or examples i could look at?

I searched but everything was for Classic.
B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Sat Oct 08, 2011 9:56 pm

For each object, there is an option to import as many separate animations as you want. Right click in the 'animations' box on the right of your screen when you are in the 'edit animations' window and click 'new animation'. Now you have the capability to add as many animations as you want for a single object.

These animations can be changed and manipulated by the event sheet.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Sat Oct 08, 2011 11:30 pm

[QUOTE=sqiddster] For each object, there is an option to import as many separate animations as you want. Right click in the 'animations' box on the right of your screen when you are in the 'edit animations' window and click 'new animation'. Now you have the capability to add as many animations as you want for a single object.

These animations can be changed and manipulated by the event sheet.[/QUOTE]

Thanks for the reply,

I have worked out how to create and import the animation frame's...
I have a sprite with the following animations:

Idle
Walk
Jump
Fall

For some reason I can't work out how to create the events to trigger each animation.
(I am also using a dummy sprite with platform behaviour)

Somebody must have posted a tutorial or example for this?

B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Sun Oct 09, 2011 12:57 am

Hello chrisbrobs

Here is a quick example I through together for you.


Platform Animation Example

Hope this helps.



B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Sun Oct 09, 2011 1:47 am

[QUOTE=Wink] Hello chrisbrobs

Here is a quick example I through together for you.


Platform Animation Example

Hope this helps.



[/QUOTE]

Cheers Wink

I wasnt even aware of...or used the the following actions / conditions:

Set animation to "WalkRight" (play from beginning)
Simulate Platform pressing Right

Somebody needs to write a tutorial about animations for C2...unless its just me ?

Thanks again.

B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296

Post » Sun Oct 09, 2011 7:00 am

Would this maybe help?
Its more or leess a WIP but I think it has what youre looking for.

platform animated movementMiu32011-10-09 07:02:09
B
43
S
9
G
5
Posts: 231
Reputation: 7,291

Post » Sun Oct 09, 2011 12:38 pm

[QUOTE=Miu3] Would this maybe help?
Its more or leess a WIP but I think it has what youre looking for.

platform animated movement[/QUOTE]


Thanks Mius.

This is perfect.
B
19
S
6
G
7
Posts: 1,204
Reputation: 7,296


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests