How do I regulate the jump?

Get help using Construct 2

Post » Thu Jul 12, 2012 5:02 am

Hello Guys,

I am creating a platform game, and I was wondering how can I regulate the jump?
I mean for example: In Mario depends of how long you pressed the button, how high Mario jumps.

So, I would like to know if exist some way to do this.

Regards,
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662

Post » Thu Jul 12, 2012 2:00 pm

What I do, is this:

half the y-velocity if:
jump is released, and
y-velocity < 0, and
player is jumping.

Something along these lines should work fairly well.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Thu Jul 12, 2012 8:47 pm

Hello sqiddster thanks for your reply.

But I didn't understand what events/actions use...

Could you please give me a more detailed explanation?

Thanks in advance!
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, LeFuji, RookieDev, TRMG, Yahoo [Bot] and 18 guests