Screengrab is only working on Flash target?
-
Hi everyone,
I'm testing screen grab from Flixel Addons using the following code on the playstate:
var spr1 = new FlxSprite(10,10); var spr2 = new FlxSprite(15,30); var spr3 = new FlxSprite(80,45); this.add(spr1); this.add(spr2); this.add(spr3); var btn:FlxButton = new FlxButton(FlxG.width * .5, FlxG.height * .5, function() { trace("screenshot"); FlxScreenGrab.grab(null, true); }); this.add(btn);
But it only seems to work on flash target. I tested windows, Android and HTML5 and it does nothing. I think that if it only works on Flash it is not very useful today.
-
Yeah, it seems to work that way, even if you bind a key to it and press it. Bummer.
(I may be wrong, but I think I remember it working as intended in other targets before the 4.0 upgrade)
-
There are a lot of issues open about this. I hope it gets fixed with the transition to openfl 5.
https://github.com/HaxeFlixel/flixel-addons/issues/4
https://github.com/HaxeFlixel/flixel-addons/issues/82