@gama11 True! Took me a while to find out why things didn't work :P

DleanJeans
@DleanJeans
Posts made by DleanJeans
-
RE: Tutorial problem.
-
RE: Change window resolution at runtime
HaxeFlixel offers FlxG.resizeWindow, it only works with desktop targets.
-
RE: Tutorial problem.
@agustín-pérez-fernández Actually, it need not to.
As super.create() is just an empty function. I choose to remove it entirely. -
RE: Tutorial problem.
The initial state has been changed to PlayState. However, you can easily change it in your
Main.hx
. -
RE: Strange Html5 Error
You may need to do a reinstall. It seems to fix the problem.
On the side, you can install Haxe latest builds which HaxeFlixel should work just well in. -
RE: Duplicate class field declaration: Thumbs__db
Check it again, it may be hidden
Optionally, refer to this: Build error caused by thumbs.db
-
RE: Overide or prevent default key events on HTML5?
Okay I just found an even better way after I stumbled upon the API of
FlxG.keys
:FlxG.keys.preventDefaultKeys = [LEFT, RIGHT, UP, DOWN, SPACE];
-
RE: Overide or prevent default key events on HTML5?
Better way without modifying your index.html, put this in your Main.hx or anywhere in your Haxe code:
#if js js.Browser.document.onkeydown = e -> e.preventDefault(); #end