HaxeFlixel Tutorial Guidance needed...



  • http://haxeflixel.com/documentation/groundwork/

    I've followed all the instructions up to "8. f you run your project right now, you should see our blue player on the screen!" however, not only does no Blue Square player show up, I can't even get it to test!

    Here's what is says:

    Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\Me\FlixelTut\FlixelTut.hxproj" -ipc 5a1af5fd-5d92-4d11-b03f-3e1382d0c01f -version "3.4.2" -compiler "C:\HaxeToolkit\haxe" -library "C:\Program Files (x86)\FlashDevelop\Library" -target "flash"
    Building FlixelTut
    Running Pre-Build Command Line...
    cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "Project.xml" flash -debug -Dfdb

    Build halted with errors.
    Done(1)


    A syntax check on all three tabs (PlayState.hx, MenuState.hx, and Player.hx) comes up with nothing. Trying to run Test Project on the other tabs yields the same results as well. Here's what I have on each tab:

    (PlayerState.hx)

    package;

    import flixel.FlxState;
    import flixel.text.FlxText;

    class PlayState extends FlxState
    {
    private var _player:Player;

    override public function create():Void
    {
    	_player = new Player(20, 20);
    	add(_player);
    	
    	super.create();
    }
    
    override public function update(elapsed:Float):Void
    {
    	super.update(elapsed);
    }
    

    }

    (MenuState.hx)

    package;

    import flixel.FlxState;
    import flixel.text.FlxText;
    import flixel.ui.FlxButton;

    class MenuState extends FlxState
    {
    private var _btnPlay:FlxButton;
    override public function create():
    {
    _btnPlay = new FlxButton(0, 0, "Play", clickPlay);
    add(_btnPlay);
    _btnPlay.screenCenter();
    super.create();
    }

    override public function update(elapsed:Float):Void
    {
    	super.update(elapsed);
    }
    

    }
    import cpp.Void;
    private function clickPlay():Void
    {
    FlxG.switchState(new PlayState());
    }


    (Player.hx)

    package;

    import flixel.FlxSprite;
    import flixel.system.FlxAssets.FlxGraphicAsset;
    import FlxColor

    class Player extends FlxSprite
    {

    public function new(?X:Float=0, ?Y:Float=0) 
    {
    	super(X, Y);
    	makeGraphic(16, 16, FlxColor.BLUE);
    	
    }
    

    }

    And that's it!


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.