killzone.tscn
1 [gd_scene load_steps=2 format=3 uid="uid://jnyxc8d80s7x"] 2 3 [ext_resource type="Script" uid="uid://8mhq78qanl22" path="res://script/killzone.gd" id="1_xlapc"] 4 5 [node name="Killzone" type="Area2D"] 6 collision_mask = 2 7 script = ExtResource("1_xlapc") 8 9 [node name="Timer" type="Timer" parent="."] 10 wait_time = 0.6 11 one_shot = true 12 13 [connection signal="body_entered" from="." to="." method="_on_body_entered"] 14 [connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]