Godot Version
4.4.1 Windows 64
Question
After the part in “coding the player” where I add “position += velocity * delta” & “position = position.clamp(Vector2.ZERO, screen_size)”, when I try to playtest it gives me an error that says “invalid type in function ‘clamp’ in base ‘Vector2’. Cannot convert argument 2 from Nil to Vector2’.” My code looks exactly the same as the tutorial so I’m not sure why it’s not working, and I’ve never coded in this language before so I’m not familiar enough to tell what exactly the error is even implying. If someone could explain it like I’m stupid or just tell me straight up what to do I would greatly appreciate it.