Unable to save sprite position in the editor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ketsmeoutside

Hi all. I’m fairly new to Godot, and I’m currently on Godot 4. I have a sprite under a CharacterBody2D node (position = 0, 0) in a scene. I’m trying to set the position of the sprite (within the scene) to (0, -23).

However, after I set it, close the scene and re-open it, the position keeps getting auto-reset to (0, -20). I don’t know it won’t retain the change I’m making to the position.

When I import this scene into another scene (like the level), the position is still (0, -20), and my change keeps getting overwritten.

Is this a bug? Nothing in my code or anything changes the position of the sprite. Also, the position is changed before the game is even run, in the editor itself.

This works fine with a basic CharacterBody2D and a Sprite (set to an appropriate position). More information is required, e.g. an example scene or something showing the inspector/hierarchy.

spaceyjase | 2023-03-17 16:45