Teleporter animation

This commit is contained in:
Marco 2025-02-07 15:43:02 +01:00
commit 50c111ee28
10 changed files with 111 additions and 52 deletions

View file

@ -1,46 +1,11 @@
[gd_scene load_steps=10 format=3 uid="uid://byms2dhliyux0"]
[gd_scene load_steps=5 format=3 uid="uid://byms2dhliyux0"]
[ext_resource type="Script" path="res://Scripts/Activables/Teleporter.cs" id="1_juavy"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="1_ppqan"]
[ext_resource type="Texture2D" uid="uid://dcrsv00yf6ylk" path="res://Sprites/Teleport_Particles.png" id="2_ggtec"]
[ext_resource type="SpriteFrames" uid="uid://w4jlaryen3we" path="res://Resources/Sprites/teleporter.tres" id="2_k58t7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_kwj8m"]
radius = 4.12311
[sub_resource type="AtlasTexture" id="AtlasTexture_ex07d"]
atlas = ExtResource("2_ggtec")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1jqq2"]
atlas = ExtResource("2_ggtec")
region = Rect2(16, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_wbhur"]
atlas = ExtResource("2_ggtec")
region = Rect2(32, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_bt8wx"]
animations = [{
"frames": [],
"loop": true,
"name": &"Idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ex07d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1jqq2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wbhur")
}],
"loop": true,
"name": &"Teleporting",
"speed": 5.0
}]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_we5sc"]
particle_flag_disable_z = true
emission_shape = 2
@ -58,13 +23,11 @@ ParticleEmitTime = 0.8
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_kwj8m")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ppqan")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
[node name="ParticleSprite" type="AnimatedSprite2D" parent="."]
visible = false
position = Vector2(0, -9)
sprite_frames = SubResource("SpriteFrames_bt8wx")
animation = &"Idle"
sprite_frames = ExtResource("2_k58t7")
animation = &"Teleporting"
[node name="Particles" type="GPUParticles2D" parent="."]
emitting = false
@ -72,4 +35,9 @@ amount = 50
process_material = SubResource("ParticleProcessMaterial_we5sc")
lifetime = 0.8
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_k58t7")
animation = &"Default"
frame_progress = 0.580599
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

File diff suppressed because one or more lines are too long