From 045d9fb7ff82f02f0289b685434b3ecffa19e74b Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Tue, 9 May 2023 13:00:15 +0200 Subject: [PATCH] AnimationPlayer.cs - Renamed 'BaseTickSpeed' and set its value to 50 --- PCK-Studio/Forms/Editor/AnimationPlayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/Forms/Editor/AnimationPlayer.cs b/PCK-Studio/Forms/Editor/AnimationPlayer.cs index bca7ca62..d1488575 100644 --- a/PCK-Studio/Forms/Editor/AnimationPlayer.cs +++ b/PCK-Studio/Forms/Editor/AnimationPlayer.cs @@ -10,7 +10,7 @@ namespace PckStudio.Forms.Editor // TODO: write as a UI control ?? sealed class AnimationPlayer { - public const int BaseTickSpeed = 48; + private const int TickInMillisecond = 50; // 1 InGame tick public bool IsPlaying { get; private set; } = false; private int currentAnimationFrameIndex = 0; @@ -33,7 +33,7 @@ namespace PckStudio.Forms.Editor if (currentAnimationFrameIndex >= _animation.FrameCount) currentAnimationFrameIndex = 0; Animation.Frame frame = SetDisplayFrame(currentAnimationFrameIndex++); - await Task.Delay(BaseTickSpeed * frame.Ticks); + await Task.Delay(TickInMillisecond * frame.Ticks); } IsPlaying = false; }