0 votes

How can I make a RigidBody2D (player) "die" when it collides with a CollisionPolyon?

-The RigidBody2D is my player, how can I make when I hit a trap (CollisionPolygon) the RigidBody2D (my player) dies

in Engine by (12 points)

Please, read first this:
Collision theory: https://docs.godotengine.org/en/stable/tutorials/physics/physics_introduction.html#collision-objects

Collision practice: https://www.youtube.com/watch?v=x5e0EMLaz1Y

then if you got any error or problem with your code, ask again :)

I have the same problem

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.