Stop Player from animating when game paused
This commit is contained in:
parent
bda8fbc833
commit
3c21a672c0
|
@ -85,13 +85,18 @@
|
||||||
|
|
||||||
Private Sub Move()
|
Private Sub Move()
|
||||||
If (Screen.Camera.IsMoving() = True And Me.DoAnimation = True) OrElse (Screen.Level.OwnPlayer IsNot Nothing AndAlso Screen.Level.OwnPlayer.isDancing) Then
|
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 CurrentScreen.Identification <> Screen.Identifications.PauseScreen Then
|
||||||
If AnimationDelay <= 0.0F Then
|
Me.AnimationDelay -= 0.13F
|
||||||
AnimationDelay = GetAnimationDelay()
|
If AnimationDelay <= 0.0F Then
|
||||||
AnimationX += 1
|
AnimationDelay = GetAnimationDelay()
|
||||||
If AnimationX > 4 Then
|
AnimationX += 1
|
||||||
AnimationX = 1
|
If AnimationX > 4 Then
|
||||||
|
AnimationX = 1
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
AnimationX = 1
|
||||||
|
ChangeTexture()
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
AnimationX = 1
|
AnimationX = 1
|
||||||
|
|
Loading…
Reference in New Issue