Follow Group, PhantomCamera2D doesn't update. #460
Replies: 1 comment
-
nvm. I misunderstand and didn't read the docs carefully |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I add all of the node to .follow_targets and have tween_on_load and auto_zoom enabled, the camera will zoom and move to be able to see all the nodes.
If I didn't add any node to
.follow_targets
it won't. But if I add nodes afterwards it still won't move. I expect the camera will move to follow the newly added nodes. But it is not doing that.This is my code:
See there are two lines of
await get_tree().create_timer(0.5).timeout
.If I commented these two lines, PhantomCamera will move as expected. But if I uncomment these, the node will spawn one by one and PhantomCamera does nothing.
What
insert_card()
does is creating Node2D then add them to PhantomCamera2D.follow_targets.Beta Was this translation helpful? Give feedback.
All reactions