void HorizontalCollision(Vector2 actorLocation, Vector2 corner, ref Vector2 moveAmount) { Collided = true; if (moveAmount.X > 0) { location = new Vector2(actorLocation.X - this.collideWidth - 1, location.Y); } else if (moveAmount.X < 0) { location = new Vector2(actorLocation.X + actorManager.GetActorWidth(corner), location.Y); } moveAmount.X = 0; velocity.X = 0; }