My player dies straight away when I code his death!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RossWoods

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

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.

exuin | 2021-04-22 19:54

:bust_in_silhouette: Reply From: magicalogic

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

:bust_in_silhouette: Reply From: alexiwto

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.