mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:17:37 +02:00
Mr Upbeat and Lockstep Animation fixes (#238)
* mr upbeat input fix + lockstep offbeat switch event seperation * Lockstep + MrUpbeat animation fixes
This commit is contained in:
@ -58,6 +58,7 @@ namespace HeavenStudio.Games
|
||||
public float beat;
|
||||
public bool goRight;
|
||||
}
|
||||
bool startLeft;
|
||||
|
||||
public static MrUpbeat instance;
|
||||
|
||||
@ -101,6 +102,14 @@ namespace HeavenStudio.Games
|
||||
});
|
||||
}
|
||||
}
|
||||
if (queuedInputs.Count % 2 != 0)
|
||||
{
|
||||
startLeft = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
startLeft = false;
|
||||
}
|
||||
queuedInputs.Clear();
|
||||
}
|
||||
if (PlayerInput.Pressed() && !IsExpectingInputNow(InputType.STANDARD_DOWN))
|
||||
@ -132,7 +141,7 @@ namespace HeavenStudio.Games
|
||||
if (GameManager.instance.currentGame == "mrUpbeat")
|
||||
{
|
||||
float offSet = 0;
|
||||
if (!MrUpbeat.instance.isPlaying(MrUpbeat.instance.metronomeAnim, "MetronomeIdle") && !MrUpbeat.instance.isPlaying(MrUpbeat.instance.metronomeAnim, "MetronomeGoRight"))
|
||||
if (MrUpbeat.instance.startLeft)
|
||||
{
|
||||
offSet = 1;
|
||||
}
|
||||
@ -157,6 +166,14 @@ namespace HeavenStudio.Games
|
||||
}
|
||||
|
||||
}
|
||||
if ((length + 1) % 2 != 0)
|
||||
{
|
||||
MrUpbeat.instance.startLeft = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
MrUpbeat.instance.startLeft = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user