I'm extremely new to Godot 4 and trying to create a basic game where the player has to dodge falling rocks. I'm currently trying to make the rock move back up to top after it hits the bottom (I have an Area2D which sends a signal when the rock enters it), but to no avail. I have tried code such as "self.position = Vector2(xpos, ypos)" among others but the rock just stays at the bottom. The rock successfully moves to a random location when first entering the scene, but not when the function is called when the rock enters the Area2D.
Here is my code if you want to look:
Rock Code
Here is a screenshot of my level scene and rock scene:
Any help would be much appreciated :)