Beeblerox/HaxeFlixel — Issue #27: problems with switchState (I think) in Mode / flash
Author: increpare
Created: 2012-02-23 18:40:28+00:00
State: open

(new haxe/haxeflixel user here (though very familiar with flixel), may be doing stupid stuff)

Downloaded Mode, compiled it with

haxelib run nme build FlixelNME.nmml flash

Title screen works okay, but it bugs out once I start a new game (screen goes white - play button appears when it looses focus, but it's otherwise unresponsive). If I get it to start in PlayState rather than MenuState, it works fine until I die and it has to switch states again, so I'm guessing there's something wrong with state-switching...

using Firefox 10.0.2, haxe vs 2.08, nme 3.2, flash player 11,1,102,62

the compiled/buggy version is here:
http://ded.increpare.com/~locus/ModeDemo.swf

Ah, running it in the flash debug player I get

ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/get width()
at org.flixel::FlxSprite/loadGraphic()
at org.flixel::FlxSprite()
at org.flixel::FlxCamera()
at org.flixel::FlxG$/resetCameras()
at org.flixel::FlxGame/switchState()
at org.flixel::FlxGame/step()
at org.flixel::FlxGame/onEnterFrame()

which pops up as soon as the scene changes.