+1 vote

So I've made a Project that is a 2D Platform Jumper. And I want the camera to follow my KinematicBody2D or Sprite and i have gotten the camera to follow the player, but it still does it when he falls off the map. so i was wondering how to limit how far down the camera can go.

in Engine by (16 points)

1 Answer

+2 votes
Best answer

Have you tried an Area2D that fires off a signal when the player goes through it? Have it near a pit, and code it so that the camera stops following the player when the player moves through this "Pit" Area2D. Alternatively, you can set properties of the Camera2D for the camera's limits, e.g. the limit_bottom property.

by (2,848 points)
selected by

had to use .setlimit(MarginBottom, 640)

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.