![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Ratty |
Hi, given a very simple project like so:
RootNode
> Node2D_1
> Node
> Sprite_1
> Sprite_2
(Godot 3.1.1)
When Node2D_1 is moved Sprite_2 correctly stays relative to Node2D_1’s position. Sprite_1 however does not and remains in global position.
It appears this is caused by using the basic Node in the tree, if it is changed to a Node2D it works as expected.
So Questions:
- Is this expected? If so then why?
- Other than changing the node to a Node2D, which seems wasteful (my project has a dynamically created set of layers with many nodes), is there any other fix?
Any help much appreciated.