can somone please fix

WHY IS THIS NOT WORKING IM PISSED GRAHHH
This commit is contained in:
WizardMantis441
2023-01-21 21:22:53 -06:00
parent 4c30c0da16
commit 3e183b95ab
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
2140
2145
+18
View File
@@ -63,6 +63,24 @@ class Stage extends FlxBasic implements IBeatReceiver {
stageSprites.set(spr.name, spr);
state.add(spr);
spr;
case "box":
trace('HOLY FUCK BOX DETECTED'); // TODO: someone help this aint doing shit!! >:(
if ( !node.has.name || !node.has.width || !node.has.height) continue;
var spr = new FlxSprite(
(node.has.x) ? Std.parseInt(node.att.x) : 0,
(node.has.y) ? Std.parseInt(node.att.y) : 0
).makeGraphic(
node.att.width,
node.att.height,
(node.has.color) ? Std.parseInt(node.att.color) : 0xFFFFFFFF
);
trace(node.att.name, node.att.width, node.att.height);
stageSprites.set(node.getAtt("name"), spr);
state.add(spr);
spr;
case "boyfriend" | "bf":
if (PlayState.instance == null || PlayState.instance.boyfriend == null) continue;
doCharNodeShit(PlayState.instance.boyfriend, node);