The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

In my 2D game when the enemies collide with the player they are supposed to kill him but when I code his death he just doesn't spawn in at all and im confused. He also automatically jumps over enemies for some reason so maybe this has something to do with it? thanks

Godot version 3.2.3
in Engine by (12 points)

Can we see the actual code? Make sure the format it properly by pasting it in, highlighting it all, and clicking the code sample button.

2 Answers

0 votes

Then the problem is in the death code. Try posting it here so we can identify the error.

by (2,018 points)
0 votes

Without the code and the scenes preview we can't do much, but what I'd say from a start is that, one enemy is colliding with the character as soon as the scene is loaded, or the condition for death is being achieved from the start somehow.

by (20 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.