mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-29 02:04:28 +00:00
Fixed several bugs with Play State (mostly restarting the song)
This commit is contained in:
parent
b96c0e6256
commit
4468e2a5a5
|
@ -820,6 +820,16 @@ class PlayState extends MusicBeatSubState
|
||||||
FlxG.watch.addQuick('bfAnim', currentStage.getBoyfriend().getCurrentAnimation());
|
FlxG.watch.addQuick('bfAnim', currentStage.getBoyfriend().getCurrentAnimation());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentStage.getBoyfriend() != null)
|
||||||
|
{
|
||||||
|
FlxG.watch.addQuick('bfCameraFocus', currentStage.getBoyfriend().cameraFocusPoint);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (currentStage.getDad() != null)
|
||||||
|
{
|
||||||
|
FlxG.watch.addQuick('dadCameraFocus', currentStage.getDad().cameraFocusPoint);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Add a song event for Handle GF dance speed.
|
// TODO: Add a song event for Handle GF dance speed.
|
||||||
|
|
||||||
// Handle player death.
|
// Handle player death.
|
||||||
|
|
|
@ -235,6 +235,7 @@ class BaseCharacter extends Bopper
|
||||||
// Then reapply animOffsets...
|
// Then reapply animOffsets...
|
||||||
// applyAnimationOffsets(getCurrentAnimation());
|
// applyAnimationOffsets(getCurrentAnimation());
|
||||||
|
|
||||||
|
// Make sure we are playing the idle animation
|
||||||
this.dance(true); // Force to avoid the old animation playing with the wrong offset at the start of the song.
|
this.dance(true); // Force to avoid the old animation playing with the wrong offset at the start of the song.
|
||||||
// Make sure we are playing the idle animation
|
// Make sure we are playing the idle animation
|
||||||
// ...then update the hitbox so that this.width and this.height are correct.
|
// ...then update the hitbox so that this.width and this.height are correct.
|
||||||
|
|
Loading…
Reference in a new issue