How do you smoothly transition a camera off one character and onto another?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jakzodiac

I have two characters in my 2d game. I want to be able to toggle between controlling the two of them.

Each one is a KinematicBody2D, with a square collision, and sprite. How do I set it up so that I can press the number 1 to switch between controlling them and at the same time have the camera smoothly lock onto the new selection?

Use “Tween”. Let it go from the position of “KinematicBody2D - 1” to the position of “KinematicBody2D - 2’” and look_at

ramazan | 2022-01-20 23:58