mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
fix camera
This commit is contained in:
parent
95f8d65972
commit
307150d3e2
1 changed files with 7 additions and 3 deletions
|
@ -1192,7 +1192,6 @@ class PlayState extends MusicBeatState
|
|||
{
|
||||
if (paused)
|
||||
{
|
||||
camHUD.exists = false;
|
||||
if (FlxG.sound.music != null)
|
||||
{
|
||||
FlxG.sound.music.pause();
|
||||
|
@ -1218,7 +1217,6 @@ class PlayState extends MusicBeatState
|
|||
if (!startTimer.finished)
|
||||
startTimer.active = true;
|
||||
paused = false;
|
||||
camHUD.exists = true;
|
||||
}
|
||||
|
||||
super.closeSubState();
|
||||
|
@ -1285,7 +1283,13 @@ class PlayState extends MusicBeatState
|
|||
FlxG.switchState(new GitarooPause());
|
||||
}
|
||||
else
|
||||
openSubState(new PauseSubState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
|
||||
{
|
||||
var boyfriendPos = boyfriend.getScreenPosition();
|
||||
var pauseSubState = new PauseSubState(boyfriendPos.x, boyfriendPos.y);
|
||||
openSubState(pauseSubState);
|
||||
pauseSubState.camera = camHUD;
|
||||
boyfriendPos.put();
|
||||
}
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.SEVEN)
|
||||
|
|
Loading…
Reference in a new issue