system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
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);
}
system
2
|
|
|
|
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");
}
}