https://linen.dev logo
Join Discord
Powered by
# flixel
  • a

    ambitious-knife-25690

    02/21/2023, 1:07 AM
    so you likely missed something specific for flixel
  • a

    ambitious-knife-25690

    02/21/2023, 1:07 AM
    the library is mostly just a maths lib
  • a

    ambitious-knife-25690

    02/21/2023, 1:09 AM
    it looks like there's an example project with the repo
  • l

    little-intern-64840

    02/21/2023, 1:09 AM
    yeah i used that
  • a

    ambitious-knife-25690

    02/21/2023, 1:09 AM
    you could try that project and see if it works in that
  • l

    little-intern-64840

    02/21/2023, 1:09 AM
    i modified some of the code from
    Main.hx
    so that it works with my project
  • l

    little-intern-64840

    02/21/2023, 1:10 AM
    i'll look into it
  • a

    ambitious-knife-25690

    02/21/2023, 1:10 AM
  • a

    ambitious-knife-25690

    02/21/2023, 1:10 AM
    I'm sure what you need to do would be covered in the how to use section
  • l

    little-intern-64840

    02/21/2023, 1:12 AM
    i took this
  • l

    little-intern-64840

    02/21/2023, 1:12 AM
    and just changed it up
    Copy code
    haxe
            var returnWidth:Bool = false;
    
            if (returnWidth)
                game.width = FlxRes.getOtherDimension(game.height, returnWidth);
            else
                game.height = FlxRes.getOtherDimension(game.width);
  • l

    little-intern-64840

    02/21/2023, 1:13 AM
    and it's the exact same
  • l

    little-intern-64840

    02/21/2023, 1:15 AM
    and `game.width`/`game.height` are predefined so i didn't need to define them again
  • a

    ambitious-knife-25690

    02/21/2023, 1:40 AM
    i wonder, i wonder
  • a

    ambitious-knife-25690

    02/21/2023, 1:40 AM
    i recommend reading the how to
  • a

    ambitious-knife-25690

    02/21/2023, 1:40 AM
    they put a lot of work into that
  • h

    hallowed-holiday-15370

    02/21/2023, 12:54 PM
    Has anyone noticed any performance issues with Haxe Checkstyle in VSCode lately? In the last couple of weeks it has seriously slowed everything down... Like: I'll type a letter, arrow key away and realize that it hadn't actually typed that letter - and now it puts it in the place where my cursor is (not where I wanted it)
  • h

    hallowed-holiday-15370

    02/21/2023, 12:55 PM
    I narrowed it down by just disabling as many extensions as I could until it started working normal speed agaain
  • h

    hallowed-holiday-15370

    02/21/2023, 1:12 PM
    ...now I dont' even know what's happening... I renabled it to test and it doesn't even seem to work (but still kills my performance) Isn't this what shows you things like : variables that are defined but not used, etc?
  • h

    hallowed-holiday-15370

    02/21/2023, 1:12 PM
    ...or did I disable something else?
  • b

    broad-gpu-14081

    02/21/2023, 2:11 PM
    I don't know how to help with checkstyle, but I suggest to try vscode profiles https://code.visualstudio.com/updates/v1_75#_profiles . With this you can define a profile for haxe only, and disable all needless extensions.
  • h

    hallowed-holiday-15370

    02/21/2023, 3:04 PM
    I'm only doing HaxeFlixel dev in VScode right now so only extensions are related to that... Here's what I'm seeing: * everything enabled: performance was horrible, but I was getting greyed out and underlined code when there were problems (unused variables, undeclared variables, etc). * Disabled a bunch of stuff and found that Haxe checkstyle was the culprit in speed, re-enabled everything else: no more code problems being shown. * Restarted VSCode, same * Re-enabled Checkstyle and restarted VSCode - performance is terrible again, still no highlighting errors... ???
  • w

    witty-island-52596

    02/21/2023, 3:07 PM
    Having the same issue
  • w

    witty-island-52596

    02/21/2023, 3:07 PM
    But only on my mac
  • w

    witty-island-52596

    02/21/2023, 3:07 PM
    I would ask in #459827960006967325
  • m

    most-eve-98431

    02/21/2023, 3:24 PM
    How and when should I use the Garbage Collector? I know nothing about it.
  • l

    lively-easter-28723

    02/21/2023, 3:27 PM
    Hey, when i add my flixel.Sprite onto FlxG.stage, it overlaps the volume sprite & debug sprite is there a way to put the new sprite below the volume sprite?
  • h

    hallowed-ocean-84954

    02/21/2023, 3:31 PM
    Ordinarily you wouldn't mess with it and you are already using it. It's an automatic background task cleaning up objects that are no longer in use. Why do you think you need to do anything with it.
  • m

    most-eve-98431

    02/21/2023, 3:32 PM
    I'm not using it at the moment but I've seen it and seems pretty interesting, but I see I shouldn't mess with it
  • b

    broad-gpu-14081

    02/21/2023, 3:34 PM
    You add your flixel sprites to the state, not to the stage. To add your sprite below something you add it before something.
1...946394649465...9809Latest