More animations in the platform behavior

Get help using Construct 2

Post » Thu Jan 31, 2013 7:04 pm

Hello everyone,


I'm trying to work in a game like 16 bit platform action game and I'm using the platform behavior. But I would like to have:

- Double Jump
- Wall Sliding and Wall Jump
- Crouch
- Dash and Air Dash
- Attack

I know I can just use commands to have those movements, but is it possible to have this inside the platform behavior to have a better animation management?

Can I change the jump button instead of Up Arrow to any other button?

Thank you.
B
13
S
2
Posts: 104
Reputation: 1,336

Post » Thu Jan 31, 2013 7:29 pm

you just need to find a way that works for you to manage the animations. for example i have a tripping behavior when my player collides with objects and an instance variable "isTripping" that gets set to true, so i set my default animation to play when:

- player is not jumping
- player is not falling
- player - compare instance variable - isTripping (inverted)
     > set player animation "default"
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Thu Jan 31, 2013 10:17 pm

It's more or less working, but not perfect. My behavior is like this:



The character is on duck when I press down and he changes the animation if I do any other input, like walk or jump. The problem is he doesn't back to normal after released the down key.

I tried to use the idle animation if duck is false, but then the character is always on idle.

Do you know how can I "back to normal" if duck is false?

Thank youarcgen2013-01-31 22:19:07
B
13
S
2
Posts: 104
Reputation: 1,336


Return to How do I....?

Who is online

Users browsing this forum: suicidenutella, Vallar and 0 guests