the-crypt/Items/Basic Wand Pickup.tscn

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-07-18 00:07:44 -05:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://art/Wand.png" type="Texture" id=1]
2020-07-18 15:58:23 -05:00
[ext_resource path="res://script/basic_wand_collectable.gd" type="Script" id=2]
2020-07-18 00:07:44 -05:00
[sub_resource type="Animation" id=1]
resource_name = "Bounce"
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Wand Pickup:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, 2 ), Vector2( 0, -2 ) ]
}
[sub_resource type="CircleShape2D" id=2]
radius = 9.05539
[node name="Area2D" type="Area2D"]
monitorable = false
collision_layer = 0
script = ExtResource( 2 )
[node name="Wand Pickup" type="Sprite" parent="."]
2020-07-18 15:58:23 -05:00
position = Vector2( 0, -1.83113 )
2020-07-18 00:07:44 -05:00
texture = ExtResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Bounce"
anims/Bounce = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"]