How do I this type of jump

Get help using Construct 2

» Thu Jun 30, 2016 5:28 am

Pic URL

How to make this jump with two button
jump on top center of the pipe or blank area
1st button give single jump
2nd button gives double jump
B
82
S
46
G
49
Posts: 714
Reputation: 35,680

» Mon Jul 04, 2016 7:55 am

bump
B
82
S
46
G
49
Posts: 714
Reputation: 35,680

» Mon Jul 04, 2016 5:33 pm

I'm interested in knowing that too.
I have done something similar, when the target position is at same elevation: https://1drv.ms/u/s!AhHSZHEulqh_gU9DPED1KiXMfRAw
But I'm not sure how to solve it when the elevations are different.
I'll need to figure it out for something I'm working on at some point, but maybe someone else knows how to do it!?
B
51
S
24
G
68
Posts: 1,178
Reputation: 40,325

» Mon Jul 04, 2016 8:42 pm

okay, I found a way to do it:
https://1drv.ms/u/s!AhHSZHEulqh_gVD2DkEQ7E1H9Sgn
This capx will make the projectile hit the target regardless of where it is located, and you can adjust the time it takes and also the height.
B
51
S
24
G
68
Posts: 1,178
Reputation: 40,325

» Mon Jul 04, 2016 9:35 pm

B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

» Tue Jul 05, 2016 4:49 am

Prominent wrote:okay, I found a way to do it:
https://1drv.ms/u/s!AhHSZHEulqh_gVD2DkEQ7E1H9Sgn
This capx will make the projectile hit the target regardless of where it is located, and you can adjust the time it takes and also the height.

No this is not what i need
see above pic
ball should jump according to the graph
B
82
S
46
G
49
Posts: 714
Reputation: 35,680

» Tue Jul 05, 2016 5:44 am

Just set a variable=2, when button pressed. If variable > 0 and is not currently jumping, then do jump and subtract 1 from variable. You'll need a way to check if it is in process of jumping or not- using a variable you set to true or false when you jump/land.
B
51
S
24
G
68
Posts: 1,178
Reputation: 40,325