How do I Make a "Tolerance Double-Jump"?

Get help using Construct 2

Post » Thu May 26, 2016 1:59 am

Here's the .capx: https://drive.google.com/open?id=0B9cfa ... W90X2NhTTg

I have implemented a "Tolerance jump" feature that allows for a player to still jump 0.2 seconds after falling off a platform:
Image

However, when Double Jump is enabled, the player can only do a single tolerance jump, instead of a tolerance double-jump. Does anyone know what I'm doing wrong?
B
16
S
5
G
4
Posts: 29
Reputation: 3,100

Post » Thu May 26, 2016 8:37 am

well, you're not actually jumping, you're just setting the vector.

is that why? (I can't see the capx, using r227)


(also, might I recommend looking into timers instead of using the 'wait' command)


EDIT: I looked in to it and the single tolerance jump you're getting is just the default when double jump is enabled on the platform behavior. that will happen with a blank event sheet.
B
88
S
43
G
71
Posts: 601
Reputation: 43,669

Post » Thu May 26, 2016 9:07 am

Derp. Just figured out the problem as I was trying to respond to your comment. Here's what I did to fix it:

Image
B
16
S
5
G
4
Posts: 29
Reputation: 3,100

Post » Thu May 26, 2016 9:44 am

This one is just a bit simpler. Also, you need to set the platform.vectorY based on player.y, not player's vectorY.
You really should be using a timer instead of the wait command. Do yourself a favor and look into it! Anyway, keep it up! Cheers! :D

Image
B
88
S
43
G
71
Posts: 601
Reputation: 43,669


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests