mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-01 01:36:47 +00:00
portraits before box to fix thorns intro layering issue
This commit is contained in:
parent
53b5153c22
commit
9885b03b7d
|
@ -60,6 +60,24 @@ class DialogueBox extends FlxSpriteGroup
|
||||||
bgFade.alpha = 0.7;
|
bgFade.alpha = 0.7;
|
||||||
}, 5);
|
}, 5);
|
||||||
|
|
||||||
|
portraitLeft = new FlxSprite(-20, 40);
|
||||||
|
portraitLeft.frames = Paths.getSparrowAtlas('weeb/senpaiPortrait');
|
||||||
|
portraitLeft.animation.addByPrefix('enter', 'Senpai Portrait Enter', 24, false);
|
||||||
|
portraitLeft.setGraphicSize(Std.int(portraitLeft.width * PlayState.daPixelZoom * 0.9));
|
||||||
|
portraitLeft.updateHitbox();
|
||||||
|
portraitLeft.scrollFactor.set();
|
||||||
|
add(portraitLeft);
|
||||||
|
portraitLeft.visible = false;
|
||||||
|
|
||||||
|
portraitRight = new FlxSprite(0, 40);
|
||||||
|
portraitRight.frames = Paths.getSparrowAtlas('weeb/bfPortrait');
|
||||||
|
portraitRight.animation.addByPrefix('enter', 'Boyfriend portrait enter', 24, false);
|
||||||
|
portraitRight.setGraphicSize(Std.int(portraitRight.width * PlayState.daPixelZoom * 0.9));
|
||||||
|
portraitRight.updateHitbox();
|
||||||
|
portraitRight.scrollFactor.set();
|
||||||
|
add(portraitRight);
|
||||||
|
portraitRight.visible = false;
|
||||||
|
|
||||||
box = new FlxSprite(-20, 45);
|
box = new FlxSprite(-20, 45);
|
||||||
|
|
||||||
var hasDialog = false;
|
var hasDialog = false;
|
||||||
|
@ -94,24 +112,6 @@ class DialogueBox extends FlxSpriteGroup
|
||||||
if (!hasDialog)
|
if (!hasDialog)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
portraitLeft = new FlxSprite(-20, 40);
|
|
||||||
portraitLeft.frames = Paths.getSparrowAtlas('weeb/senpaiPortrait');
|
|
||||||
portraitLeft.animation.addByPrefix('enter', 'Senpai Portrait Enter', 24, false);
|
|
||||||
portraitLeft.setGraphicSize(Std.int(portraitLeft.width * PlayState.daPixelZoom * 0.9));
|
|
||||||
portraitLeft.updateHitbox();
|
|
||||||
portraitLeft.scrollFactor.set();
|
|
||||||
add(portraitLeft);
|
|
||||||
portraitLeft.visible = false;
|
|
||||||
|
|
||||||
portraitRight = new FlxSprite(0, 40);
|
|
||||||
portraitRight.frames = Paths.getSparrowAtlas('weeb/bfPortrait');
|
|
||||||
portraitRight.animation.addByPrefix('enter', 'Boyfriend portrait enter', 24, false);
|
|
||||||
portraitRight.setGraphicSize(Std.int(portraitRight.width * PlayState.daPixelZoom * 0.9));
|
|
||||||
portraitRight.updateHitbox();
|
|
||||||
portraitRight.scrollFactor.set();
|
|
||||||
add(portraitRight);
|
|
||||||
portraitRight.visible = false;
|
|
||||||
|
|
||||||
box.animation.play('normalOpen');
|
box.animation.play('normalOpen');
|
||||||
box.setGraphicSize(Std.int(box.width * PlayState.daPixelZoom * 0.9));
|
box.setGraphicSize(Std.int(box.width * PlayState.daPixelZoom * 0.9));
|
||||||
box.updateHitbox();
|
box.updateHitbox();
|
||||||
|
|
Loading…
Reference in a new issue