Player can die now

This commit is contained in:
MaddoScientisto 2024-08-18 17:38:32 +02:00
commit 360b4dfe6a
6 changed files with 87 additions and 24 deletions

View file

@ -59,11 +59,12 @@ public partial class Bullet : Area2D
//Debug.WriteLine("Collision");
QueueFree();
}
else if (body.IsInGroup("Destroyable"))
{
Debug.WriteLine("Collision with destroyable object body");
QueueFree();
}
//// Do not Collide with body for purpose of destroying bullets
// else if (body.IsInGroup("Destroyable"))
// {
// Debug.WriteLine("Collision with destroyable object body");
// QueueFree();
// }
}