16 lines
583 B
Plaintext
16 lines
583 B
Plaintext
[gd_scene load_steps=2 format=2]
|
|
|
|
[ext_resource path="res://src/Scripts/SpawnPoint.gd" type="Script" id=1]
|
|
|
|
[node name="SpawnPoint" type="Position2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
|
rect = Rect2( -50, -50, 100, 100 )
|
|
|
|
[node name="RespawnTimer" type="Timer" parent="."]
|
|
wait_time = 0.7
|
|
one_shot = true
|
|
[connection signal="screen_entered" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_entered"]
|
|
[connection signal="timeout" from="RespawnTimer" to="." method="_on_RespawnTimer_timeout"]
|