Player movement and animation
This commit is contained in:
parent
f456725cf2
commit
0dd3f24030
9 changed files with 700 additions and 38 deletions
45
metroidvania/DustEffect.tscn
Normal file
45
metroidvania/DustEffect.tscn
Normal file
|
@ -0,0 +1,45 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Effects/Dust.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Effect.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://DustEffect.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "Animate"
|
||||
length = 0.3
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/path = NodePath("Sprite:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0, 2, -0.25, 0, 0.25, 0 ),
|
||||
"times": PoolRealArray( 0, 0.1, 0.2 )
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0.3 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"values": [ {
|
||||
"args": [ ],
|
||||
"method": "queue_free"
|
||||
} ]
|
||||
}
|
||||
|
||||
[node name="DustEffect" instance=ExtResource( 2 )]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 3
|
||||
frame = 2
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
autoplay = "Animate"
|
||||
anims/Animate = SubResource( 1 )
|
Loading…
Add table
Add a link
Reference in a new issue