help here

Get help using Construct 2

Post » Wed Oct 16, 2013 11:50 am

B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 16, 2013 3:45 pm

no help?
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 16, 2013 6:31 pm

What are you trying to accomplish?

The second code is doing the same thing if platform is moving or not, so why not just set animation to bounce in the main event?

You don't need to check if an animation is playing, and another isn't playing. Obviously if JumpFall is playing, then HurtFall isn't. Not sure that is making a difference or not. ArcadEd2013-10-16 18:32:16
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,667

Post » Thu Oct 17, 2013 5:30 am

this is for a platform beat em up game. both are for player's basics.

Jump landing is of course for falling from jump.

bounce is an animation for when players lands on the floor after being hit while on-air.

The animation the player uses when damaged on air and while falling is HurtFall. The player is supposed to use the animation Bounce when the player lands on the ground.

The jumpfall is working and the bounce isn't.

which do you mean by "main event"?

The animation is not playing conditions were added because the bounce were not playing. I do have the same opinion as you that those are not needed, but I lost ideas on how to fix this.sgn152013-10-17 05:33:10
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Thu Oct 17, 2013 11:15 am

try setting it up as one trigger event and 2 sub events.

On player landed>
   hurtfall is playing > set animation bounce
   else> set animation to stance

I am not sure why you have a "is moving" and a "is not moving" condition for stance, i would have to see the rest of your code.

a second way to do this would be to set a instance variable and test against that rather then the animation state.

it all depends on how you handle your animation triggers in your events.

depending on how you have your walk trigger and stance trigger you probably don't even need any lines of code for it to function like normal after falling.
B
26
S
7
G
1
Posts: 83
Reputation: 2,575

Post » Thu Oct 17, 2013 4:24 pm

The "Is moving->walk" and "Is NOT moving->stance" are from the platformer tutorial. I just renamed Idle to Stance

My walk codes are from that tutorial as well



I just added a walk speed

B
16
S
7
Posts: 301
Reputation: 2,726


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, R0J0hound, volumetv and 20 guests