added pause menu
This commit is contained in:
@@ -39,17 +39,16 @@ func _on_body_entered(body: Node) -> void:
|
||||
|
||||
if !body.is_in_group("player"):
|
||||
print("BODY HIT - " + str(body))
|
||||
#Break Breakable Objects
|
||||
|
||||
#Break Breakable Objects
|
||||
if body.is_in_group("breakable"):
|
||||
body.breaking(linear_velocity)
|
||||
|
||||
if body.is_in_group("switch"):
|
||||
body.hit()
|
||||
|
||||
|
||||
|
||||
mesh.visible = false
|
||||
|
||||
|
||||
if ray.is_colliding() and !ray.get_collider().is_in_group("player"):
|
||||
#Bullet Hole Effect
|
||||
ray.get_collider().add_child(instance_bullethole)
|
||||
@@ -64,8 +63,5 @@ func _on_body_entered(body: Node) -> void:
|
||||
hit_indicator.play()
|
||||
enemy_particles.emitting = true
|
||||
ray.get_collider().hit(bullet_damage)
|
||||
|
||||
|
||||
#Switch Switches
|
||||
|
||||
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user