How do I jump continuously holding the jump (input) key?

Get help using Construct 2

Post » Sun Jul 13, 2014 5:32 am

Title says it. How can it be done? Right now we are just using the platform behavior and it doesn't seem to be an option for it.
B
4
Posts: 7
Reputation: 202

Post » Sun Jul 13, 2014 5:40 am

keyboard w is down---player set platform vector y to -550
B
5
S
1
Posts: 51
Reputation: 477

Post » Sun Jul 13, 2014 5:46 am

While button is down, set gravity to 0. On button release, set gravity to 500 (or whatever value it was before). That should do the trick.

EDIT: Ahh, Ninja'd!
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Sun Jul 13, 2014 6:27 am

Thank you guys for the quick replies. I may not have explained it correctly. Our level is comprised of several obstacles which the player jumps over. Some of these obstacles are setup to where if the player were to hold down the jump input key, they could continue to jump over the obstacles. The methods above suggest a "upon release" trigger. We have no problem with the release, we just wish to have our main sprite continue to jump if the input key is held down.
B
4
Posts: 7
Reputation: 202

Post » Sun Jul 13, 2014 6:58 am

ok then!
EVENT -- Player - Platform On Landed, Keyboard - Up arrow is down. ACTION -- Player - Set Platform vector Y to -500 (or jump height you desire)
Sorry, if that's unclear. Boards won't let me attach anything right now. :(


Good luck! :)
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Sun Jul 13, 2014 7:24 am

Awesome, thank you so very much. It works. I was not thinking clearly enough when working with it earlier, makes since now. You're awesome Ryan.
B
4
Posts: 7
Reputation: 202

Post » Sun Jul 13, 2014 3:23 pm

I'm happy that it works for you! :)
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683


Return to How do I....?

Who is online

Users browsing this forum: FlyingRam, jkmalau, MadSpy, Manubis and 9 guests