diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-04-14 21:49:20 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-04-14 21:49:20 +0200 |
commit | f27937e6e9b6a7146dd09fc711d2d293ecf5abbf (patch) | |
tree | e0ddd5e6d356000e4f29af6211a736284a4972ee /Scenes/Components/Teleport.tscn | |
parent | 96d36cee33d6321834565f0a5d412ef95c5ceffd (diff) |
update
Diffstat (limited to 'Scenes/Components/Teleport.tscn')
-rw-r--r-- | Scenes/Components/Teleport.tscn | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Scenes/Components/Teleport.tscn b/Scenes/Components/Teleport.tscn new file mode 100644 index 0000000..f84591b --- /dev/null +++ b/Scenes/Components/Teleport.tscn @@ -0,0 +1,32 @@ +[gd_scene load_steps=5 format=3 uid="uid://cv64e7fpdi2a2"] + +[ext_resource type="Script" path="res://Scenes/Components/Teleport.gd" id="1_ygag4"] +[ext_resource type="Texture2D" uid="uid://bxl3lqlm22eem" path="res://Assets/Stages/core_outdoor.png" id="2_xm2l1"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_62iqj"] +radius = 8.0 + +[sub_resource type="CircleShape2D" id="CircleShape2D_jkjyl"] +radius = 8.0 + +[node name="Teleport" type="Node2D"] +script = ExtResource("1_ygag4") + +[node name="Enter" type="Area2D" parent="."] +collision_mask = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Enter"] +shape = SubResource("CircleShape2D_62iqj") + +[node name="Leave" type="Area2D" parent="."] +collision_mask = 2 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Leave"] +shape = SubResource("CircleShape2D_jkjyl") + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("2_xm2l1") +region_enabled = true +region_rect = Rect2(448.349, 464.431, 15, 16) + +[connection signal="body_entered" from="Enter" to="." method="_on_body_entered"] |