This commit is contained in:
2026-08-28 20:23:13 +03:00
parent dae7ec06da
commit 6b6a926715
6 changed files with 2240 additions and 2160 deletions
+27 -3
View File
@@ -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