Player movement and animation

This commit is contained in:
Felipe M 2021-01-29 17:09:52 +01:00
parent f456725cf2
commit 0dd3f24030
Signed by: fmartingr
GPG key ID: 716BC147715E716F
9 changed files with 700 additions and 38 deletions

View file

@ -56,6 +56,23 @@ tracks/0/keys = {
"update": 1,
"values": [ 4, 5, 6, 7, 8, 9, 7 ]
}
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, 0.6 ),
"transitions": PoolRealArray( 1, 1 ),
"values": [ {
"args": [ ],
"method": "create_dust_effect"
}, {
"args": [ ],
"method": "create_dust_effect"
} ]
}
[node name="Player" type="KinematicBody2D"]
script = ExtResource( 2 )
@ -64,6 +81,7 @@ script = ExtResource( 2 )
position = Vector2( 0, -12 )
texture = ExtResource( 1 )
hframes = 12
frame = 4
[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2( 0, -7 )
@ -81,3 +99,7 @@ visible = false
position = Vector2( 0, -8 )
update_rotation = false
update_scale = false
[node name="CoyoteJumpTimer" type="Timer" parent="."]
wait_time = 0.2
one_shot = true