Error: Unexpected "Identifier" in class body.

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

I’m new to Godot & following this tutorial. I got an error when I’m trying to use print

extends CharacterBody2D

func _physics_process(_delta):
	
	var input_direction = Vector2(
	# positive is down // negative is up
								#Having both down will not make em move
	Input.get_action_strength("right") - Input.get_action_strength("left"),
	Input.get_action_strength("down") - Input.get_action_strength("up")
)
print("fire")

Same error pops up when I try to do print(input_direction)

:bust_in_silhouette: Reply From: DweebGamering

Nvm I found a solution.

I just needed to put print inside the function & fix up the code
enter image description here