|Attention||Topic was automatically imported from the old Question2Answer platform.|
Hey, I’m having trouble moving an object (a RigidBody2D) using the Position variable. When I run the code, the position of the object changes for a moment, but then returns to its previous position.
The object is a scene instantiated in another one, a RigidBody2D (Character), which has as children a CollisionShape2D and a Sprite. I have tried with a similar object and everything goes well, but this object appears in the indicated position for a moment, and then it returns to its original position. There is no code that is causing this.