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! If you want the actual world position you will need to use
go.get_world_position
.
2 Likes
Thank you very much
1 Like