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
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

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: Kermad, yiuyiu6666 and 24 guests