Child game objects position is not changing (SOLVED)

Hello. When I change the position of the parent game object. In the child game object’s script, go.get_position() never changes. But its sprite is moving with the parent game object. I am very confused. Why is this happening?

Hi!

go.get_position() will only return the position relative to its parent! :slight_smile: If you want the actual world position you will need to use go.get_world_position. :+1:

2 Likes

Thank you very much :slight_smile:

1 Like