How can I change the node’s position, without inflicting the position of its children too (via script)?

I’m using move_and_collide in one of my scripts (which moves one of my nodes) and alters the node’s position that is linked to my script. When I run it though, the children of the node are changing position too, and that interferes with my game heavily. How can I change the node’s position, without inflicting the position of its children too?

You could set the children’s top_level property on; but it is often be better to restructure your non-moving parts to be children of something else.

3 Likes