Type not found : FLxG



  • Hi All.
    I am following the tutorial here. https://haxeflixel.com/documentation/groundwork/
    But I have an issue, when I try to compile this step I got the following errors.

    source/Player.hx:32: characters 15-19 : Type not found : FLxG
    source/Player.hx:33: characters 17-21 : Type not found : FLxG
    source/Player.hx:34: characters 17-21 : Type not found : FLxG
    source/Player.hx:35: characters 18-22 : Type not found : FLxG

    I manually added the import to the class:

    import flixel.FlxG;

    And still got the same issue.

    The lines of code are:

        _up = FLxG.keys.anyPressed([UP, W]);
        _down = FLxG.keys.anyPressed([DOWN, S]);
        _left = FLxG.keys.anyPressed([LEFT, Q]);
        _right = FLxG.keys.anyPressed([RIGHT, D]);
    

    Anyone knows what could possibly be the cause?

    Thanks.


  • administrators

    Looks like you accidentally capitalized the L. It's FlxG, not FLxG.



  • OMG!!!
    I need some sleep LOL.
    Thanks a lot :)


Log in to reply
 

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