public void Setup_Combat(Enemy target) { enemy = target; if(enemy.HitBox.Contains(player.sPostion)) { InCombat = true; // enemy.currentDir = player.currentAnimation; Console.WriteLine(player.currentAnimation); switch(player.currentAnimation) { case "none": break; case "Left": enemy.PlayAnimation("right"); break; case "Right": enemy.PlayAnimation("left"); break; case "Up": enemy.PlayAnimation("down"); break; case "Down": enemy.PlayAnimation("up"); break; case "Idleleft": enemy.PlayAnimation("right"); break; case "IdleRight": enemy.PlayAnimation("left"); break; case "IdleUp": enemy.PlayAnimation("down"); break; case "IdleDown": enemy.PlayAnimation("up"); break; } //{ none, left, right, up, down }; enemy.PlayAnimation(player.currentAnimation); } else { Console.WriteLine("[Game] You're too far away to attack."); // chatBox.Write_String("You're too far away to attack."); } }