proper "skid" turning animation
This commit is contained in:
parent
3d5363374f
commit
d7fee943bc
2 changed files with 6 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.4 KiB |
|
@ -81,9 +81,13 @@ script = ExtResource("4_bsdw5")
|
||||||
script = ExtResource("4_bsdw5")
|
script = ExtResource("4_bsdw5")
|
||||||
first_frame = Vector2i(1, 0)
|
first_frame = Vector2i(1, 0)
|
||||||
|
|
||||||
|
[node name="Skid" type="Node" parent="Graphics/Sprite"]
|
||||||
|
script = ExtResource("4_bsdw5")
|
||||||
|
first_frame = Vector2i(2, 0)
|
||||||
|
|
||||||
[node name="Run" type="Node" parent="Graphics/Sprite"]
|
[node name="Run" type="Node" parent="Graphics/Sprite"]
|
||||||
script = ExtResource("4_bsdw5")
|
script = ExtResource("4_bsdw5")
|
||||||
first_frame = Vector2i(0, 2)
|
first_frame = Vector2i(0, 1)
|
||||||
frames = 4
|
frames = 4
|
||||||
fps = 16.0
|
fps = 16.0
|
||||||
loop = true
|
loop = true
|
||||||
|
@ -201,5 +205,5 @@ bus = &"Capri"
|
||||||
[connection signal="state_entered" from="StateChart/Root/Grounded/Running" to="Graphics/Sprite/Run" method="play"]
|
[connection signal="state_entered" from="StateChart/Root/Grounded/Running" to="Graphics/Sprite/Run" method="play"]
|
||||||
[connection signal="state_physics_processing" from="StateChart/Root/Grounded/Running" to="." method="_scale_run_animation"]
|
[connection signal="state_physics_processing" from="StateChart/Root/Grounded/Running" to="." method="_scale_run_animation"]
|
||||||
[connection signal="state_physics_processing" from="StateChart/Root/Grounded/Running" to="." method="_apply_run_acceleration"]
|
[connection signal="state_physics_processing" from="StateChart/Root/Grounded/Running" to="." method="_apply_run_acceleration"]
|
||||||
[connection signal="state_entered" from="StateChart/Root/Grounded/Turning" to="Graphics/Sprite/Bark" method="play"]
|
[connection signal="state_entered" from="StateChart/Root/Grounded/Turning" to="Graphics/Sprite/Skid" method="play"]
|
||||||
[connection signal="state_physics_processing" from="StateChart/Root/Grounded/Turning" to="." method="_apply_turn_acceleration"]
|
[connection signal="state_physics_processing" from="StateChart/Root/Grounded/Turning" to="." method="_apply_turn_acceleration"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue