ramokz / phantom-camera

👻🎥 Control the movement and dynamically tween 2D & 3D cameras. Built for Godot 4. Inspired by Cinemachine.
https://phantom-camera.dev/
MIT License
1.97k stars 65 forks source link

Added follow_target_changed signal #191

Closed ZenithStar closed 6 months ago

ZenithStar commented 6 months ago

Also updated the behavior of set_follow_target_node to emit follow_target_changed if actually changed and to match erase_follow_target_node behavior with a null input

ZenithStar commented 6 months ago

Also added a get_follow_target_node_or_null method, the same idea as Node.get_node_or_null

ZenithStar commented 6 months ago

Okay. I made the same changes to PhantomCamera2D, but I don't have any premade 2D scenes to test with.