add boot animation

This commit is contained in:
Nikolay Fedorov
2026-04-23 17:06:10 +03:00
parent 82af31501d
commit 6b7294dfd8
3 changed files with 31 additions and 4 deletions
+4 -1
View File
@@ -29,6 +29,7 @@ var _aim_yaw: float = 0.0
var _is_aiming: bool = false
@onready var mesh_node: MeshInstance3D = $player_man
@onready var mesh_node_boot: MeshInstance3D = $boot
@onready var indicator_node: MeshInstance3D = $KickIndicator
@onready var anim_player: AnimationPlayer = $AnimationPlayer2
@@ -215,7 +216,9 @@ func set_aim_direction(yaw_rad: float) -> void:
func _play_kick_blend() -> void:
var tw := create_tween()
tw.tween_method(func(v: float): mesh_node.set_blend_shape_value(0, v), 0.0, 1.0, 0.12)
tw.tween_method(func(v: float): mesh_node.set_blend_shape_value(0, v), 1.0, 0.0, 0.38)
tw.tween_method(func(v: float): mesh_node_boot.set_blend_shape_value(0, v), 0.0, 1.0, 0.12)
tw.tween_method(func(v: float): mesh_node.set_blend_shape_value(0, v), 1.0, 0.0, 0.28)
tw.tween_method(func(v: float): mesh_node_boot.set_blend_shape_value(0, v), 1.0, 0.0, 0.28)
func _squish_effect() -> void:
var tw := create_tween()