[gd_scene load_steps=7 format=3 uid="uid://cypj35yv5auuc"] [ext_resource type="Script" uid="uid://dbrblyk7xttpj" path="res://objects/portal/portal.gd" id="1_v7atq"] [ext_resource type="Texture2D" uid="uid://dtwp3ohanw2sn" path="res://assets/textures/portal/portal.png" id="2_ah4id"] [sub_resource type="Animation" id="Animation_xxtm7"] resource_name = "spin" length = 0.5 loop_mode = 1 step = 0.25 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [0.0, 6.28319] } [sub_resource type="Animation" id="Animation_0po8f"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0.0] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_6y8yo"] _data = { &"RESET": SubResource("Animation_0po8f"), &"spin": SubResource("Animation_xxtm7") } [sub_resource type="RectangleShape2D" id="RectangleShape2D_v7atq"] size = Vector2(16, 16) [node name="Portal" type="Node2D"] script = ExtResource("1_v7atq") [node name="Sprite2D" type="Sprite2D" parent="."] texture = ExtResource("2_ah4id") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_6y8yo") } autoplay = "spin" [node name="Area2D" type="Area2D" parent="."] collision_mask = 16 [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] shape = SubResource("RectangleShape2D_v7atq") [connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"] [connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]