mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-25 21:55:55 +00:00
Don't apply global offset twice (NOTE: this may break Nene again!)
This commit is contained in:
parent
7e39687994
commit
1fb5c31c22
|
|
@ -436,8 +436,9 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
|
||||||
// Start with the per-stage character position.
|
// Start with the per-stage character position.
|
||||||
// Subtracting the origin ensures characters are positioned relative to their feet.
|
// Subtracting the origin ensures characters are positioned relative to their feet.
|
||||||
// Subtracting the global offset allows positioning on a per-character basis.
|
// Subtracting the global offset allows positioning on a per-character basis.
|
||||||
character.x = stageCharData.position[0] - character.characterOrigin.x + character.globalOffsets[0];
|
// We previously applied the global offset here but that is now done elsewhere.
|
||||||
character.y = stageCharData.position[1] - character.characterOrigin.y + character.globalOffsets[1];
|
character.x = stageCharData.position[0] - character.characterOrigin.x;
|
||||||
|
character.y = stageCharData.position[1] - character.characterOrigin.y;
|
||||||
|
|
||||||
@:privateAccess(funkin.play.stage.Bopper)
|
@:privateAccess(funkin.play.stage.Bopper)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue