Is there a action released function for C#

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

I’m trying to make a let go, change height feature in a game i’m working on
I found a thing in the documentation that doesn’t work

if(Input.IsActionJustReleased(“jump”) && motion.y < 0)
{
motion.y = (motion.y * jumpMultiplier);
}

:bust_in_silhouette: Reply From: Pijush Sarkar

Did you add your “jump” action?
Add your “jump” Action in Project Settings → Input Map

I have just checked the event and its working in C#

    public override void _Process(float delta)
  {
      if (Input.IsActionJustReleased("Jump"))
      {
        GD.Print("Jump Jump Jump");
      }
  }