the-crypt/Items/Wand Pickups/ChargeWandPickup.tscn
2020-07-23 19:47:27 -05:00

43 lines
1.1 KiB
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Items/Collectable.gd" type="Script" id=1]
[ext_resource path="res://art/Wand.png" type="Texture" id=2]
[sub_resource type="Animation" id=1]
resource_name = "Bounce"
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite: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="ChargeWandPickup" type="Area2D"]
monitorable = false
collision_layer = 0
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[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"]