diff --git a/source/animate/AnimTestStage.hx b/source/animate/AnimTestStage.hx index 82a997a8b..42a82f952 100644 --- a/source/animate/AnimTestStage.hx +++ b/source/animate/AnimTestStage.hx @@ -10,8 +10,9 @@ class AnimTestStage extends FlxState { var bg:FlxSprite = FlxGridOverlay.create(32, 32); add(bg); + bg.scrollFactor.set(); - var swag:FlxAnimate = new FlxAnimate(0, 0); + var swag:FlxAnimate = new FlxAnimate(200, 200); add(swag); super.create(); diff --git a/source/animate/FlxAnimate.hx b/source/animate/FlxAnimate.hx index dc86c40ec..6ec319e9a 100644 --- a/source/animate/FlxAnimate.hx +++ b/source/animate/FlxAnimate.hx @@ -38,6 +38,13 @@ class FlxAnimate extends FlxSymbol { super.draw(); + if (FlxG.keys.justPressed.ONE) + { + trace("-------------------------------------"); + trace('CUR FRAME: ' + daFrame); + trace('--------------'); + } + renderFrame(coolParse.AN.TL, coolParse, true); if (FlxG.keys.justPressed.E) @@ -55,8 +62,6 @@ class FlxAnimate extends FlxSymbol } } - var curFrame:Int = 0; - // notes to self // account for different layers var playingAnim:Bool = false; diff --git a/source/animate/FlxSymbol.hx b/source/animate/FlxSymbol.hx index 805bb684c..bb15b8e04 100644 --- a/source/animate/FlxSymbol.hx +++ b/source/animate/FlxSymbol.hx @@ -1,6 +1,7 @@ package animate; import flixel.FlxCamera; +import flixel.FlxG; import flixel.FlxSprite; import flixel.graphics.frames.FlxFrame.FlxFrameAngle; import flixel.math.FlxAngle; @@ -29,11 +30,6 @@ class FlxSymbol extends FlxSprite var symbolAtlasShit:Map = new Map(); - override function draw() - { - super.draw(); - } - public static var nestedShit:Map> = new Map(); var symbolMap:Map = new Map(); @@ -47,6 +43,9 @@ class FlxSymbol extends FlxSprite { for (layer in TL.L) { + if (FlxG.keys.justPressed.TWO) + trace(layer.LN); + // layer.FR.reverse(); // var frame = layer.FR[0] @@ -79,11 +78,12 @@ class FlxSymbol extends FlxSprite // spr.origin.y += origin.y; spr.antialiasing = true; + // if (layer.LN != 'head') spr.draw(); - if (traceShit) + if (FlxG.keys.justPressed.ONE) { - trace(element.ASI.N); + trace("ASI - " + layer.LN + ": " + element.ASI.N); } } else @@ -113,6 +113,13 @@ class FlxSymbol extends FlxSprite // nestedShit.oldMatrix = element.SI.M3D; + if (FlxG.keys.justPressed.ONE) + { + trace("SI - " + layer.LN + ": " + element.SI.SN); + } + + nestedSymbol.TL.L.reverse(); + nestedShit.hasFrameByPass = true; nestedShit.nestDepth = nestDepth + 1; nestedShit.renderFrame(nestedSymbol.TL, coolParsed);