How do I avoid a player jumping

Get help using Construct 2

Post » Wed Sep 28, 2016 4:28 pm

Hello!

I'm trying to disable jumping based on some instance variables but I can't get it to work.

Basically if player IS X disable jump. In order to do that I tried to set jump str to 0 but it doesn't do anything.

Would appreciate any help.

Thanks!
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Wed Sep 28, 2016 4:48 pm

Jump str=0 should be fine, so the issue must be your event is never true. Check in debug mode if your instance variables are as expected.
B
47
S
17
G
82
Posts: 2,230
Reputation: 48,607

Post » Wed Sep 28, 2016 5:12 pm

plinkie wrote:Jump str=0 should be fine, so the issue must be your event is never true. Check in debug mode if your instance variables are as expected.


Yeah they are because I do have some other stuff happening while that event is true and of course I checked it on debug.

Edit: Found out the issue. Since I wasn't using default controls I had to add an inverted condition on the simulate jump event.
B
14
S
5
Posts: 248
Reputation: 1,705


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 26 guests