Heads now stick to glass tables (and bleed).

This commit is contained in:
Henry 2026-03-04 17:09:47 +00:00
parent a13f274767
commit ab0a4e24f7
5 changed files with 56 additions and 7 deletions

View file

@ -7,6 +7,8 @@ var shader_active = false
var pause = false
var target = null
@onready var head_splat = preload("res://sprites/head_splat.png")
func start(pos):
position = pos
@ -49,9 +51,16 @@ func _on_area_entered(area: Area2D) -> void:
"shards":
if area.is_in_group("shards"):
print("Shards hit!")
area.hit_detection()
#stick_to_target(target)
queue_free()
area.hit_detection()
# stick_to_target(target)
reparent(area)
$Sprite2D.texture = head_splat
$Sprite2D.hframes = 1
position = Vector2.ZERO
pause = true
$Sprite2D/GPUParticles2D.hide()
monitoring = false
"mirror":