feat: Add player character script with core game logic, network synchronization, and manager integration.

This commit is contained in:
Yogi Wiguna
2026-03-23 09:40:45 +08:00
parent 7601b93192
commit b1c5e75a3e
2 changed files with 5 additions and 19 deletions
+4 -19
View File
@@ -793,26 +793,11 @@ func apply_stagger(duration: float = 1.5):
_apply_tint_recursive(self , Color.WHITE) # Remove tint
func _play_knock_vfx() -> void:
"""Plays the three knock receiver VFX in sequence: top -> bot -> stunned.
"""Plays the three knock receiver VFX concurrently.
Each hides itself once its animation finishes."""
# 1. attack_mode_top
if vfx_attack_top:
vfx_attack_top.visible = true
vfx_attack_top.play()
await vfx_attack_top.animation_finished
vfx_attack_top.visible = false
# 2. attack_mode_bot
if vfx_attack_bot:
vfx_attack_bot.visible = true
vfx_attack_bot.play()
await vfx_attack_bot.animation_finished
vfx_attack_bot.visible = false
# 3. receiver_skill_stunned
if vfx_stunned:
vfx_stunned.visible = true
vfx_stunned.play()
await vfx_stunned.animation_finished
vfx_stunned.visible = false
play_skill_vfx("attack_mode_top")
play_skill_vfx("attack_mode_bot")
play_skill_vfx("receiver_skill_stunned")
@rpc("any_peer", "call_local", "reliable")
func sync_stop_freeze(enabled: bool):
+1
View File
@@ -0,0 +1 @@
uid://dqq36uawrnpwd