0 votes

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?

Godot version latest
in Engine by (16 points)

Use "Tween". Let it go from the position of "KinematicBody2D - 1" to the position of "KinematicBody2D - 2'" and look_at

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.