+8 votes

So I've made a Project that is a 2D Platform Jumper. And I want the camera to follow my KinematicBody2D or Sprite (if possible both) and I researched for like an hour or two and I only saw solutions for Godot 2, but I'm using Godot 3 and I'm already used to its interface. Please Help

in Engine by (29 points)

1 Answer

+13 votes

They are the same:

Attach a Camera2D as a child of your Player and set its "Current" property to "On."

That's all you need to get a working camera. After that you can experiment with drag margins and smoothing if you want to change up the camera's movement.

by (21,712 points)

Thanks for the answer. but of course since im new to this godot 3 script change How can i control my game work for mobile devices aka android and ios? I also researched about this question but they are all for godot 2. I just want my character to move left and right and jump i have my KinematicBody2D scripted for movement, but i want it to be reconfigured for a mobile device. then i don't even know how to setup the gui overlay for left and right and the jump button. so i need help with that too.

This is several different questions. All of them require a basic understanding of Godot and are answered in the Godot official docs: http://docs.godotengine.org/en/stable/index.html

Input: InputEvent
UI: Introduction to the UI System
Mobile: Exporting

You need to learn how Godot works before you try and find specific solutions, or you won't understand what the answers mean. Follow the "Step by Step" section of the docs and you'll learn how the engine works and how to do the things you're trying to do.

This forum is for answering specific questions, not teaching you how to make a game. Please post each question separately so that it can be answered and also searched for in the future.

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.