Wall slide
This commit is contained in:
parent
ef19463d6e
commit
11b0e77b48
2 changed files with 88 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Player/Player.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Player/Player.gd" type="Script" id=2]
|
||||
|
@ -74,6 +74,22 @@ tracks/1/keys = {
|
|||
} ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=5]
|
||||
resource_name = "WallSlide"
|
||||
length = 0.1
|
||||
tracks/0/type = "value"
|
||||
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 = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ 10 ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=4]
|
||||
resource_name = "Blink"
|
||||
length = 0.9
|
||||
|
@ -115,7 +131,7 @@ script = ExtResource( 2 )
|
|||
position = Vector2( 0, -12 )
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 12
|
||||
frame = 4
|
||||
frame = 11
|
||||
|
||||
[node name="PlayerGun" parent="Sprite" instance=ExtResource( 4 )]
|
||||
show_behind_parent = true
|
||||
|
@ -129,6 +145,7 @@ shape = ExtResource( 6 )
|
|||
anims/Idle = SubResource( 1 )
|
||||
anims/Jump = SubResource( 2 )
|
||||
anims/Run = SubResource( 3 )
|
||||
anims/WallSlide = SubResource( 5 )
|
||||
|
||||
[node name="BlinkAnimator" type="AnimationPlayer" parent="."]
|
||||
anims/Blink = SubResource( 4 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue