How do I

Get help using Construct 2

Post » Tue May 17, 2016 4:30 pm

How to Limit jump? i want to jump my character only 1 time.
B
10
S
3
Posts: 37
Reputation: 708

Post » Tue May 17, 2016 5:45 pm

How you mean only one time ?
B
33
S
18
G
28
Posts: 2,470
Reputation: 20,904

Post » Tue May 17, 2016 6:04 pm

i mean you jump an you cant jump after first jump like mario. you can jump mario one time
B
10
S
3
Posts: 37
Reputation: 708

Post » Tue May 17, 2016 6:21 pm

Easyest is to dissable the jump key. But then u have to set 'default controls' on 'no' in the behaviour. And simulate (thats an action in sprite > platform) all the keys. Ex. : When left key pressed > simulate left.

For the jump you need a variable that you set to zero on start up. And set to 1 when player jumps.

So logic for jump is this.

In the same event: 2 conditions combined :
Up key pressed
variable = 0
actions :
simulate jump
set variable to 1
B
33
S
18
G
28
Posts: 2,470
Reputation: 20,904


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests