A GDS doesn't work in the Godot project I created


Like this, it doesn’t output anything. How can I fix it? thank you!

Why are you adding so many if trues?
They literally don’t do anything

Do you pressed the up arrow in the keyboard to test it?
if True: is a statement of python not GDScript.
Do it normally:

print("something")

Do not need to place it in a statement.

But I keep pressing the “W” key, and it still doesn’t output anything.

Is the action up defined in your input map?
Check Project/Project Settings/Input Map
The default/built-in action is ui_up

Oh not W, press the up arrow.

Pressing ‘↑’ did not produce any response.

Not sure what are you doing, this time press W.
Or try it normally:

func _process(delta):
   print("Working!")

Working?

什么也不输出:(

Make sure you added the player properly in scene and it attached with the script. Also remove the bookmark if anything there.
Please talk in English.

Sorry, I forgot to translate just now.


Is that so?