+1 vote

I just wanted to ask how to make a jumpscare in Godot but I am brand new to Godot and have no idea what I'm doing if anyone could help that would be amazing.

Godot version Godot 3.4
in Engine by (13 points)

1 Answer

+2 votes
  1. Add an Area node at the location you want the trigger
  2. Add a CollisionShape as a child node and set its shape in the inspector
  3. Add a script to the Area node, or some node that can easily access it
  4. Connect to the area's body_entered(body: Node) signal

Now, when any object with a collision shape (and the appropriate layer), enters the area, a signal will be emitted. Check if the body argument is a character, for example by checking its name, group or class. And if it is, start the jumpscare.

by (640 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 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 webmaster@godotengine.org with your username.