Reset Camera speed for run or ride in scripts

This commit is contained in:
JappaWakka 2023-06-11 20:36:41 +02:00
parent b91a5f586f
commit 2e0966dd04
2 changed files with 6 additions and 3 deletions

View File

@ -445,9 +445,9 @@ Public Class OverworldCamera
Speed = 0.04F
ElseIf Core.Player.IsRunning() = True Then
Speed = 0.06F
Else
Speed = 0.04F
End If
Else
Speed = 0.04F
End If
End If
Screen.Level.OverworldPokemon.MoveSpeed = Speed
End Sub

View File

@ -101,6 +101,9 @@ nextScript:
''' <param name="InputType">Type of information; 0: Script path, 1: Text, 2: Direct input.</param>
Public Sub StartScript(ByVal Input As String, ByVal InputType As Integer, Optional ByVal CheckDelay As Boolean = True, Optional ByVal ResetInsight As Boolean = True)
Screen.Level.OwnPlayer.Opacity = 1
If Core.Player.IsRunning = True OrElse Screen.Level.Riding = True Then
Screen.Camera.Speed = 0.04F
End If
ScriptLevelIndex += 1
TempSpin = False