Stop Player from animating when game paused

This commit is contained in:
JappaWakka 2023-07-26 10:33:53 +02:00
parent bda8fbc833
commit 3c21a672c0
1 changed files with 11 additions and 6 deletions

View File

@ -85,13 +85,18 @@
Private Sub Move()
If (Screen.Camera.IsMoving() = True And Me.DoAnimation = True) OrElse (Screen.Level.OwnPlayer IsNot Nothing AndAlso Screen.Level.OwnPlayer.isDancing) Then
Me.AnimationDelay -= 0.13F
If AnimationDelay <= 0.0F Then
AnimationDelay = GetAnimationDelay()
AnimationX += 1
If AnimationX > 4 Then
AnimationX = 1
If CurrentScreen.Identification <> Screen.Identifications.PauseScreen Then
Me.AnimationDelay -= 0.13F
If AnimationDelay <= 0.0F Then
AnimationDelay = GetAnimationDelay()
AnimationX += 1
If AnimationX > 4 Then
AnimationX = 1
End If
End If
Else
AnimationX = 1
ChangeTexture()
End If
Else
AnimationX = 1