Trying to make a simple banner.
I'm back to programming games and trying to make a simple banner, but I'm having some issues:
- OpenFl/Flash/Haxeflixel natural incompatibilities.
- The banner works well, but I must control it (show/hide) from the FlxStates.
- The banner is directly loaded. It should be progressive.
Plus, I want to know some links and tutorials about monetization using banners, admob, etc. (using haxeflixel)
P.s.: I'm reinventing the wheel, but I'm very curious about how this can be done in a better way. Here is my mess:
Thank you very much!
What do you mean by "natural incompatibilities"? HaxeFlixel comes from Flash world and works excellent on this target
@starry-abyss I mean that you can't directly load a "Sprite" into a "FlxSprite", for example. It's normal. That's what I said.
Thank you Sruloart! I will take a look.
I get my code to work directly in haxeflixel with no layer above, no code in Main.hx. It's working well. But....
It only works in neko or os targets. The reason: I need to store the downloaded image somewhere to be read as an Asset.
I think that FlxSprite should have a method for loading images of the internet, like:
What do you think about?