How do I simulate platformer "Jump" action with jump sustain

Get help using Construct 2

Post » Tue Sep 08, 2015 1:54 pm

Hi,

I'm working on a platformer, and would like to use simulate control "jump" with another key (object > simulate platform pressing jump)

But I'm using the jump sustain property, and with the simulated control, only the small jump can be played, while using the up arrow I can make higher jumps.

Any idea how I can make the jump sustain to work with simulated controls?
B
24
S
5
G
1
Posts: 336
Reputation: 2,433

Post » Tue Sep 08, 2015 2:08 pm

Hmm, I tried the Platform-Template example. There are the WASD-Keys used with simulate and I see now difference between the UP-Arrow and the W-Key for Jump with 'jump sustain' set to 200.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Tue Sep 08, 2015 2:50 pm

Indeed, and looking into this template I was able to figure out the problem : the event I used was "on key pressed", while it should have been "key is down". So it was logical that the jump sustain couldn't be taken into account.

Thanks a lot for your help!
B
24
S
5
G
1
Posts: 336
Reputation: 2,433

Post » Tue Sep 08, 2015 2:51 pm

It's important to have the "simulate jump" on a repeatable event, something like "Key is down", and not a trigger like "Key is pressed".

edit: well, looks like I was ninja'ed by the OP! :lol:
B
67
S
28
G
24
Posts: 970
Reputation: 18,675

Post » Sat Sep 12, 2015 7:37 pm

Haha! Thanks anyway! ;)
B
24
S
5
G
1
Posts: 336
Reputation: 2,433


Return to How do I....?

Who is online

Users browsing this forum: bluesun66, jasontoups and 1 guest