Hi folks, I tried to add in the code as mentioned in that section in the Godot course
global_position.x = clampf(global_position.x, 0, screen_size.x)
global_position.y = clampf(global_position.y, 0, screen_size.y)
but I’m getting this error:
Line 39:Unexpected “Identifier” in class body.
Line 40:Unexpected “Identifier” in class body.
Please help! Using 4.0.2