Teleporter tutorial
This commit is contained in:
1 parent
82d1375871
commit
2c203c8476
7 files changed
+112
-7
No files matched your search
@@ -0,0 +1,40 @@
|
||||
[gd_scene format=3 uid="uid://7bjqgxckho"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btxx0p5ccar5f" path="res://hidden_teleporter.gd" id="1_52wed"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0tvtt4eu8jmt" path="res://art/block/portal.png" id="2_rx1y0"]
|
||||
[ext_resource type="Texture2D" uid="uid://55ihxa2emnep" path="res://art/block/portal2.png" id="3_5admx"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4a5x8gwhl2wc" path="res://art/block/portal3.png" id="4_tfiuq"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_tuehi"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_rx1y0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_5admx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_tfiuq")
|
||||
}],
|
||||
"loop": 1,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_7k7bx"]
|
||||
radius = 9.0
|
||||
|
||||
[node name="HiddenTeleporter" type="Node2D" unique_id=1201409437]
|
||||
script = ExtResource("1_52wed")
|
||||
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="." unique_id=395479262]
|
||||
sprite_frames = SubResource("SpriteFrames_tuehi")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/Area2D" unique_id=1560168165]
|
||||
shape = SubResource("CircleShape2D_7k7bx")
|
||||
|
||||
[connection signal="body_entered" from="Sprite2D/Area2D" to="." method="_on_contact"]
|
||||
Reference in new issue
Block a user