From e4abe7389594173d2bdb476ffc20e981b870263d Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Fri, 7 Apr 2023 21:31:22 -0700 Subject: [PATCH] Stage character property fix --- source/funkin/game/Stage.hx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/Stage.hx b/source/funkin/game/Stage.hx index a937e645..4eaa8748 100644 --- a/source/funkin/game/Stage.hx +++ b/source/funkin/game/Stage.hx @@ -92,21 +92,18 @@ class Stage extends FlxBasic implements IBeatReceiver { y: 100, flip: true }); - null; case "girlfriend" | "gf": addCharPos("girlfriend", node, { x: 400, y: 130, flip: false }); - null; case "dad" | "opponent": addCharPos("dad", node, { x: 100, y: 100, flip: false }); - null; case "character": if (!node.has.name) continue; addCharPos(node.att.name, node); @@ -162,7 +159,7 @@ class Stage extends FlxBasic implements IBeatReceiver { return characterPoses[name].group; } - public function addCharPos(name:String, node:Access, ?nonXMLInfo:StageCharPosInfo) { + public function addCharPos(name:String, node:Access, ?nonXMLInfo:StageCharPosInfo):MusicBeatGroup { var group:MusicBeatGroup = new MusicBeatGroup(); state.add(group); @@ -172,6 +169,7 @@ class Stage extends FlxBasic implements IBeatReceiver { group: group }; + return group; } public function isCharFlipped(posName:String, def:Bool = false) {