Model Train Forum banner

The player controls a "Drifter"—a mercenary born during the Rift event. Unlike previous heroes, the Drifter does not rely on a single shadow orb. Instead, they possess the ability to absorb energy from the Rifts themselves, allowing them to switch combat styles mid-battle.

state = Idle on input: if state == Idle: if input == LightAttack: state = LightAttackAnim if input == HeavyAttack: state = HeavyAttackWindup if input == Block: state = Blocking if input == Parry and withinParryWindow: state = ParrySuccess on animationEvent: if animation ends: state = Idle collision: if state in [LightAttackAnim, HeavyAttackActive] and hitbox overlaps enemyHurtbox: applyDamage(calculateDamage(state), applyStun) if enemyInVulnerableState: triggerCombo() Shadow Fight 4 Script