Drawing path?
-
Hi,
I've been using FlxPath for a game idea and I was wondering if there is a way to draw the path.
I know there is drawDebug(), and in the example there is this :override public function draw():Void { super.draw(); if (player.path != null && !player.path.finished) { player.path.drawDebug(); } }
But unless I'm in debug, it doesn't work. Now, is there something I'm missing in the demo or ...?
I'm aware of the #IF_DEBUG macros in the FlxPath btw, I'm just wondering how they made it work in the demo without using debug mode...
-
Hi, the demo uses player.drawDebug(), but you have player.path.drawDebug(). Maybe that changes things? I havent tried myself, hope it helps.
-
It's the same @nekomasterdeluxe, it's still the same method from the same FlxPath class.
-
Actually, the demo does use debug mode.
-
Damn, I couldn't get it to show the debug mode on my computer for some reason :S