In Godot 3, properties were renamed from pos
-> position
, rot
-> rotation
, etc.
You also don't need to use the setter function, you can access the property directly:
Area2D.position = Vector2(x, y)
The details are all in the documentation. See Area2D and Node2D.