Platform single direction jump

Get help using Construct 2

Post » Tue Jul 31, 2012 6:38 am

Hi guys,

I am wondering when using the platform jumping behavior, is there a simple way to set the behavior so that after you do the initial jump in a direction, the object will follow that jump direction all the way until landing?

Similar to how a fighting game jump behavior is set up, you can jump UP, FORWARDS, or BACKWARDS, but once you initiate that jump the direction cannot be altered by the controller?

I saw something regarding a sustained jump in the classic forums but wasn't sure if that is the same idea.

Thanks!
Try out my fighting game demo Kung Fu Fiction!

https://www.scirra.com/arcade/fighting- ... 6267?cp=13
B
14
S
7
G
6
Posts: 40
Reputation: 4,544

Post » Tue Jul 31, 2012 9:14 am

I've done this before and it works pretty well.
As soon as you jump start ignoring input and set deceleration to 0.
Then when the player lands stop ignoring input and set deceleration to what it was before.
B
100
S
38
G
134
Posts: 5,552
Reputation: 85,317

Post » Tue Jul 31, 2012 3:20 pm

Ah I see, that works perfect!

Thanks ROJOhound!
Try out my fighting game demo Kung Fu Fiction!

https://www.scirra.com/arcade/fighting- ... 6267?cp=13
B
14
S
7
G
6
Posts: 40
Reputation: 4,544


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 7 guests