How to disable double jumping

Ok so i want to only be able to single jump in my game, is this possible?

Hmm, well you could place barriers above the player that are high enough to allow one jump, but not two. However, the player would still be able to double-jump regardless of anything.


Another way would be to have a meter that checks how high the player jumped and calculate how high a double jump would take them and freeze the player if they double jumped.

1 Like

Hm thats not really what i was looking for but thanks for the feedback!

How do i do that because i dont really understand

You just put a barrier on top.
Easiest thing, ever.

No the second thing WSG said

That’s to find out the height of a jump, which is recommended for an accurate height.

Well, I made a system like this before. You use the coordinate device and some properties. The coordinate device checks for the player’s Y value. Have one the properties connected to a looped channel that repeatedly activates the coordinate device. That would be the latest height. Have another property set as the height and if that is higher than lets say 4 blocks then the single jump it will know it was a double jump. When it detects the higher value of height have it broadcast a channel to an energy meter which would make the player require a resource to move.

You cant make player coordinate an output device

The coordinate device can broadcast a channel whenever the player’s position changes.

I checked it can only update properties not channels

What do you mean by output? Almost every device can output something. Some don’t of course.

Oh wait it can sorry

1 Like

I mean that it cant be the second thing a wire connects to

Well using channels doesn’t take memory and is easier once you get used to it.

I already got used to it + you cant check for specifically y or x value

You can though? Have a property connected to the Y position and that property is specifically the value of the player’s Y position. The update properties place should say yes.

Oh. I just checked and yeah

Also are the properties number or text