bear_fx
This commit is contained in:
+27
-3
@@ -1,8 +1,32 @@
|
||||
extends Node3D
|
||||
|
||||
# Get a reference to the Bear_FX AnimationPlayer node
|
||||
@onready var fx_player: AnimationPlayer = $Bear_FX/AnimationPlayer
|
||||
|
||||
func bear_fx_jump_smash():
|
||||
$Bear_FX/Bear_fx_jump_smash.visible = true
|
||||
# Play the jump smash animation when the mesh turns on
|
||||
fx_player.play("Bear_fx_jump_smash")
|
||||
|
||||
func bear_fx_claw_attack_R():
|
||||
$Bear_FX/Bear_fx_claw_attack_R.visible = true
|
||||
# Play the jump smash animation when the mesh turns on
|
||||
fx_player.play("Bear_fx_claw_attack_R")
|
||||
|
||||
func bear_fx_claw_attack_L():
|
||||
$Bear_FX/Bear_fx_claw_attack_L.visible = true
|
||||
# Play the jump smash animation when the mesh turns on
|
||||
fx_player.play("Bear_fx_claw_attack_L")
|
||||
|
||||
func bear_fx_smash_hit():
|
||||
$Bear_FX/Bear_fx_smash_hit.visible = true
|
||||
# Play the jump smash animation when the mesh turns on
|
||||
fx_player.play("Bear_fx_smash_hit")
|
||||
|
||||
func mesh_on():
|
||||
visible = true
|
||||
|
||||
func mesh_off():
|
||||
visible = false
|
||||
$Bear_FX/Bear_fx_smash_hit.visible = false
|
||||
$Bear_FX/Bear_fx_claw_attack_L.visible = false
|
||||
$Bear_FX/Bear_fx_claw_attack_R.visible = false
|
||||
$Bear_FX/Bear_fx_jump_smash.visible = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user