[gd_scene load_steps=5 format=2] [ext_resource path="res://objects/Area2D.gd" type="Script" id=1] [ext_resource path="res://art/door.png" type="Texture" id=2] [sub_resource type="Animation" id=1] resource_name = "Door Opening" length = 0.12 tracks/0/type = "value" tracks/0/path = NodePath(".:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1 ), "transitions": PoolRealArray( 1, 1 ), "update": 1, "values": [ 0, 1 ] } [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 14, 13 ) [node name="Door" type="Sprite"] texture = ExtResource( 2 ) centered = false hframes = 2 frame = 1 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] "anims/Door Opening" = SubResource( 1 ) [node name="Area2D" type="Area2D" parent="."] script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2( 16, 19 ) shape = SubResource( 2 ) [connection signal="body_entered" from="Area2D" to="Area2D" method="_on_Area2D_body_entered"]