How do I add a directional jump?

Get help using Construct 2

Post » Mon Jan 16, 2017 6:36 pm

I'm just getting to grips with Construct2 and so far everything is flowing pretty smoothly.

However, my character has an animation for a simple jump straight up, but I'd also like her to perform a different animation if she jumps whilst moving left or right. How best would I achieve this?
B
13
S
3
Posts: 63
Reputation: 903

Post » Mon Jan 16, 2017 9:14 pm

Sure - if the Platform speed is not equal to 0, use a different animation :)
B
26
S
7
Posts: 257
Reputation: 2,395

Post » Mon Jan 16, 2017 9:16 pm

I think this should work:
Player On jump
(Sub-Event)Player platform is moving --> Set animation to "this"
(Sub-Event)Player platform is not moving --> Set animation to "that"

Same for On landed, if you want to have different animations (Idle, Run)
B
47
S
11
G
10
Posts: 237
Reputation: 7,902

Post » Tue Jan 17, 2017 9:04 am

Thank you very much, that's fantastic!

One last question on the same topic - if I wanted to add an animation in for a pre-jump (so the player crouches down and prepares to spring forward) how would I ensure that this plays before the sprite jumps?
B
13
S
3
Posts: 63
Reputation: 903

Post » Tue Jan 17, 2017 10:53 am

On key down "space" --> Set anim to "pre-jump"
On anim "pre-jump" finished --> Similate platform pressing jump

I don't now if this will work, but try it.
B
47
S
11
G
10
Posts: 237
Reputation: 7,902

Post » Tue Jan 17, 2017 11:08 am

Thank you for replying, unfortunately that doesn't work for me :(

It seems like the pre-jump animation isn't playing at all. However, it is definitely there.
B
13
S
3
Posts: 63
Reputation: 903


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests