Boss encounter door lock
This commit is contained in:
parent
2b90d087c4
commit
ad7cb69355
6 changed files with 75 additions and 4 deletions
|
@ -1010,11 +1010,13 @@ shape = SubResource( 4 )
|
|||
max_health = 100
|
||||
|
||||
[node name="RightWallCheck" type="RayCast2D" parent="." index="7"]
|
||||
cast_to = Vector2( 0, 16 )
|
||||
enabled = true
|
||||
cast_to = Vector2( 16, 0 )
|
||||
collision_mask = 2
|
||||
|
||||
[node name="LeftWallCheck" type="RayCast2D" parent="." index="8"]
|
||||
cast_to = Vector2( 0, -16 )
|
||||
enabled = true
|
||||
cast_to = Vector2( -16, 0 )
|
||||
collision_mask = 2
|
||||
|
||||
[node name="Timer" type="Timer" parent="." index="9"]
|
||||
|
|
|
@ -16,3 +16,4 @@ func _on_Hurtbox_hit(damage):
|
|||
func _on_EnemyStats_enemy_died():
|
||||
Utils.instance_scene_on_main(EnemyDeathEffect, global_position)
|
||||
queue_free()
|
||||
emit_signal("died")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue