public override void spinerender(Spine.SkeletonRenderer renderer) { anim.Skeleton.RootBone.X = position.X + (dimensions.X / 2); anim.Skeleton.RootBone.Y = position.Y + (dimensions.Y); anim.Skeleton.UpdateWorldTransform(); renderer.Draw(anim.Skeleton); }
public override void spinerender(Spine.SkeletonRenderer renderer) { AnimationLib.SpineAnimationSet currentSkeleton = directionAnims[(int)direction_facing]; currentSkeleton.Skeleton.RootBone.X = CenterPoint.X * (currentSkeleton.Skeleton.FlipX ? -1 : 1); currentSkeleton.Skeleton.RootBone.Y = CenterPoint.Y + (dimensions.Y / 2f); currentSkeleton.Skeleton.RootBone.ScaleX = 1.0f; currentSkeleton.Skeleton.RootBone.ScaleY = 1.0f; currentSkeleton.Skeleton.UpdateWorldTransform(); renderer.Draw(currentSkeleton.Skeleton); }
public override void spinerender(Spine.SkeletonRenderer renderer) { if (minionState == BroodLingState.Chase || minionState == BroodLingState.Biting || minionState == BroodLingState.Idle || minionState == BroodLingState.KnockBack) { anim.Skeleton.RootBone.X = position.X + (dimensions.X / 2); anim.Skeleton.RootBone.Y = position.Y + (dimensions.Y / 2); anim.Skeleton.RootBone.Rotation = direction * (float)(180 / -Math.PI) + 90; anim.Skeleton.UpdateWorldTransform(); renderer.Draw(anim.Skeleton); } }