What is the function for nullifying an input?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jekalinski

I want to be able to write:

if (var) jumping == false:
    (disable Input.is_action_pressed("ui_up"):)

Is there a specific term I need to use, because I can’t seem to find any solution.

Why would you need to disable it? When you need to check for the input, you could have something such as if on_the_floor and Input.is_action_pressed("ui_up"): do_this (). That way, you could set on_the_floor when necessary.

Ertain | 2018-09-23 23:34

:bust_in_silhouette: Reply From: eons

There is no special function for that, is part of the flow control that comes with the programming language (any).

Just do:

if not jumping:
    process your jumping Input

Check the kinematic character entry on the documentation and the demos for more examples.