can someone help me with this problemom?
You have to add those actions in the project settings. Or you could create them in code.
I think it could also be the if statement in the return that could be causing the issue. I don't remember right off how ternary if statements work in Godot, but I remember they are kinda strange. If adding the actions in the project settings or through code do not fix the issue, I would see something like the code below works instead.
func get_direction() -> Vector2:
var y_pos = 1.0
if Input.is_action_just_pressed("jump") and is_on_floor():
y_pos = -1.0
Input.get_action_strength("move_right") - Input.get_action_strength("move_left"),
I mean I recognize the code, it looks just like the code in the GDQuest third person controller template, and when I copied the files over into my own project I just needed to add all the actions via project settings for it to work.
is_action_just_pressed not is_action_just_presed.
Ah yes, thats it. Don't you just hate it when you make a hard to identify typo...