do triple jumps like mario?

Get help using Construct 2

Post » Wed Mar 01, 2017 4:42 am

How do i do triple jump like mario?
https://www.youtube.com/watch?v=EoxCdDCGhsg
B
35
S
14
G
3
Posts: 138
Reputation: 4,378

Post » Wed Mar 01, 2017 7:01 am

Don't know how to really do it but I think I have the Logic for it.

var iJumping = 0 // Used to know in which state is jumping the player.

I think you will need to use timer for that
make a condition onCollision with the floor Timer Start
while the timer is on && on keyboard some btn pressed && Jumping ==0 do some process which is jump and Set 1 to Jumping
else set jumping = 0 // if the condition is not accomplish then set jump to 0
while the timer is on && on keyboard some btn pressed && Jumping ==1 do some process which is jump and Set 2 to Jumping
else set jumping = 0
while the timer is on && on keyboard some btn pressed && Jumping ==2 do some process which is jump and Set 3 to Jumping
else set jumping = 0
if jumping is > 2 set jumping to 0 // if jump greater than 2 set jump to 0

I hope this work to find a answer to your question
B
9
S
1
G
1
Posts: 9
Reputation: 943

Post » Wed Mar 01, 2017 1:10 pm

Fair enough. Any way to elaborate?
B
35
S
14
G
3
Posts: 138
Reputation: 4,378

Post » Wed Mar 01, 2017 4:13 pm

You are going to have to study the tutorials on platformer movements and examples in C2.

If people just hand you a CAPX you are not progressing in your game design skills and will keep having the same questions.

Not to be rude- but you have asked for more examples of things that any game designer should know how to do and it appears you want the forum to build your game for you and that is not helping you.

Play with all the platformer settings until you understand what they do and you can change all those settings to get the effects you want.

Triple jump is just resetting the jump after a timer or on animation finished.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825


Return to How do I....?

Who is online

Users browsing this forum: Congrats2u, Kyatric and 26 guests