Heads now stick to glass tables (and bleed).
This commit is contained in:
parent
a13f274767
commit
ab0a4e24f7
5 changed files with 56 additions and 7 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue