add boot animation
This commit is contained in:
+4
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user