[gd_scene load_steps=7 format=2] [ext_resource path="res://Music and Fonts(Misc.)/m5x7.tres" type="DynamicFontData" id=1] [ext_resource path="res://art/door.png" type="Texture" id=2] [ext_resource path="res://objects/Door.gd" type="Script" id=3] [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 ) [sub_resource type="DynamicFont" id=3] font_data = ExtResource( 1 ) [node name="Door" type="Sprite"] texture = ExtResource( 2 ) centered = false hframes = 2 script = ExtResource( 3 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] "anims/Door Opening" = SubResource( 1 ) [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2( 16, 19 ) shape = SubResource( 2 ) [node name="Label" type="Label" parent="."] margin_left = -9.0 margin_top = -15.0 margin_right = 42.0 margin_bottom = -1.0 custom_fonts/font = SubResource( 3 ) text = "F to Open" align = 1 valign = 1 __meta__ = { "_edit_use_anchors_": false } [connection signal="body_entered" from="Area2D" to="Area2D" method="_on_Area2D_body_entered"]