Chest + Door Functionality
This commit is contained in:
21
Levels/Objects/Key.tscn
Normal file
21
Levels/Objects/Key.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Levels/Objects/icekey.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Levels/Objects/Gem.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "rise"
|
||||
length = 1.2
|
||||
|
||||
[node name="Key" type="Node2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="IceKeySprite" type="Sprite" parent="."]
|
||||
position = Vector2( -0.0417144, 0.145997 )
|
||||
scale = Vector2( 0.760146, 0.732771 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/rise = SubResource( 1 )
|
||||
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]
|
Reference in New Issue
Block a user