'Spawn Sprites on Desktop [Haxe Flixel]

I am trying to spawn sprites on the desktop, the same way you would in a regular HaxeFlixel State.

Kinda like the desktop goose from a while back.

I have already tried to do this effect with boarder-less windows but it just isn’t rendering sprites correctly.

I was woundering if anyone had a different solution to this problem!

Better example of what I mean:

This!

This video is a animation.

Thank you all!



Solution 1:[1]

You can use FlxSprite.

var sprite = new FlxSprite

https://api.haxeflixel.com/flixel/FlxSprite.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 PrismLight