mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-27 07:17:20 +00:00
Merge pull request #585 from FunkinCrew/pursnake/character-scale
[PUBLIC PR] Fix an issue with character scaling
This commit is contained in:
commit
d0e5c7f12b
|
@ -124,7 +124,7 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
|
||||||
getGirlfriend().resetCharacter(true);
|
getGirlfriend().resetCharacter(true);
|
||||||
// Reapply the camera offsets.
|
// Reapply the camera offsets.
|
||||||
var stageCharData:StageDataCharacter = _data.characters.gf;
|
var stageCharData:StageDataCharacter = _data.characters.gf;
|
||||||
var finalScale:Float = getBoyfriend().getBaseScale() * stageCharData.scale;
|
var finalScale:Float = getGirlfriend().getBaseScale() * stageCharData.scale;
|
||||||
getGirlfriend().setScale(finalScale);
|
getGirlfriend().setScale(finalScale);
|
||||||
getGirlfriend().cameraFocusPoint.x += stageCharData.cameraOffsets[0];
|
getGirlfriend().cameraFocusPoint.x += stageCharData.cameraOffsets[0];
|
||||||
getGirlfriend().cameraFocusPoint.y += stageCharData.cameraOffsets[1];
|
getGirlfriend().cameraFocusPoint.y += stageCharData.cameraOffsets[1];
|
||||||
|
@ -134,7 +134,7 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
|
||||||
getDad().resetCharacter(true);
|
getDad().resetCharacter(true);
|
||||||
// Reapply the camera offsets.
|
// Reapply the camera offsets.
|
||||||
var stageCharData:StageDataCharacter = _data.characters.dad;
|
var stageCharData:StageDataCharacter = _data.characters.dad;
|
||||||
var finalScale:Float = getBoyfriend().getBaseScale() * stageCharData.scale;
|
var finalScale:Float = getDad().getBaseScale() * stageCharData.scale;
|
||||||
getDad().setScale(finalScale);
|
getDad().setScale(finalScale);
|
||||||
getDad().cameraFocusPoint.x += stageCharData.cameraOffsets[0];
|
getDad().cameraFocusPoint.x += stageCharData.cameraOffsets[0];
|
||||||
getDad().cameraFocusPoint.y += stageCharData.cameraOffsets[1];
|
getDad().cameraFocusPoint.y += stageCharData.cameraOffsets[1];
|
||||||
|
|
Loading…
Reference in a new issue