This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

So I'm trying to make a platformer. I have a KinematicBody2D inside of it with a sprite, a CollisionShape2D, and a Camera2D inside. The camera has a limit:

image

That way, when they fall down off of a platform, then their camera just stays like a lot of platformers do.

The thing is, it doesn't respawn you.

So how can I detect when the limit is reached, wait 2 seconds, and then respawn the player? Thanks

Godot version 3.2.3
in Engine by (92 points)

Have you looked into using the limit_* properties of the Camera2D node?

2 Answers

0 votes
Best answer

I ended up making a fallzone.

by (92 points)
0 votes

You can also use VisibilityNotifier node. Add it as a child of player, it will emit screen_exited signal when your player leaves visible screen. Connect to this signal and respawn the player when it is emited.

by (8,188 points)
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.