cirnogodot/Scenes/Actors/teleporter.tscn

44 lines
1.4 KiB
Text
Raw Normal View History

2025-02-07 15:43:02 +01:00
[gd_scene load_steps=5 format=3 uid="uid://byms2dhliyux0"]
2024-06-09 00:56:25 +02:00
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://c1q7esgfnbvsf" path="res://Scripts/Activables/Teleporter.cs" id="1_juavy"]
2025-02-07 15:43:02 +01:00
[ext_resource type="SpriteFrames" uid="uid://w4jlaryen3we" path="res://Resources/Sprites/teleporter.tres" id="2_k58t7"]
2024-06-09 00:56:25 +02:00
2025-02-06 17:57:06 +01:00
[sub_resource type="CircleShape2D" id="CircleShape2D_kwj8m"]
radius = 4.12311
2024-06-09 00:56:25 +02:00
2025-02-06 17:57:06 +01:00
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_we5sc"]
particle_flag_disable_z = true
emission_shape = 2
emission_sphere_radius = 8.85
orbit_velocity_min = -0.2
orbit_velocity_max = 0.2
gravity = Vector3(0, -98, 0)
color = Color(0.207843, 0.360784, 1, 1)
2024-06-09 00:56:25 +02:00
[node name="Teleporter" type="Area2D"]
collision_mask = 2
2025-02-06 17:57:06 +01:00
script = ExtResource("1_juavy")
ParticleEmitTime = 0.8
2024-06-09 00:56:25 +02:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2025-02-06 17:57:06 +01:00
shape = SubResource("CircleShape2D_kwj8m")
2024-06-09 00:56:25 +02:00
2025-02-07 15:43:02 +01:00
[node name="ParticleSprite" type="AnimatedSprite2D" parent="."]
visible = false
2025-01-22 15:09:04 +01:00
position = Vector2(0, -9)
2025-02-07 15:43:02 +01:00
sprite_frames = ExtResource("2_k58t7")
animation = &"Teleporting"
2025-02-06 17:57:06 +01:00
2025-02-19 23:40:31 +01:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_k58t7")
animation = &"Default"
frame_progress = 0.462812
2025-02-06 17:57:06 +01:00
[node name="Particles" type="GPUParticles2D" parent="."]
2025-02-19 23:40:31 +01:00
z_index = 2
2025-02-06 17:57:06 +01:00
emitting = false
amount = 50
process_material = SubResource("ParticleProcessMaterial_we5sc")
lifetime = 0.8
[connection signal="body_entered" from="." to="." method="_on_body_entered"]