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

    colossal-match-5265

    02/19/2023, 2:18 PM
    This is programming fundamentals
  • c

    colossal-match-5265

    02/19/2023, 2:18 PM
    not haxe, flixel related
  • e

    echoing-rainbow-13896

    02/19/2023, 2:19 PM
    welp, guess I gotta go read 500 more pages about programming
  • c

    colossal-match-5265

    02/19/2023, 2:19 PM
    Look at the example I posted. do some googling. This is what it means to develop software/games.
  • c

    colossal-match-5265

    02/19/2023, 2:19 PM
    It is not easy and people will not and should not just give you code snippits to compile
  • b

    broad-gpu-14081

    02/19/2023, 2:19 PM
    Try to remove group 1 from state then add it again.
  • c

    colossal-match-5265

    02/19/2023, 2:20 PM
    That could work too, but will put it on top of Everything, which isnt technically what they asked for
  • b

    broad-gpu-14081

    02/19/2023, 2:20 PM
    This assumes you added group 1 then group 2 then you want group 1 be drawn after group 2
  • e

    echoing-rainbow-13896

    02/19/2023, 2:20 PM
    tried that but it just fucks everything up in the sense that the group is just gone
  • e

    echoing-rainbow-13896

    02/19/2023, 2:21 PM
    yea
  • e

    echoing-rainbow-13896

    02/19/2023, 2:25 PM
    that wouldnt actually matter in this case
  • h

    hallowed-holiday-15370

    02/19/2023, 2:37 PM
    @bright-gpu-74537 for Grid objects, you have to set the number of columns - it won't auto-wrap based on the sizes of the objects?
  • w

    witty-island-52596

    02/19/2023, 2:44 PM
    i do this a lot
  • b

    bright-gpu-74537

    02/19/2023, 2:45 PM
    not with grid, no, but you can use a "continuous hbox": http://haxeui.org/builder/?aba08edf
  • b

    bright-gpu-74537

    02/19/2023, 2:45 PM
    <hbox continuous="true" width="100%" height="50%" style="background-color:blue;padding:5px;">.....
  • b

    bright-gpu-74537

    02/19/2023, 2:45 PM
  • e

    echoing-rainbow-13896

    02/19/2023, 3:24 PM
    found a solution to my problem: I added the two FlxSpriteGroups to one FlxGroup and then just removed the one SpriteGRoup and re added it to get it to be in front of the other
  • b

    broad-gpu-14081

    02/20/2023, 7:21 AM
    Wanted to complain about
    AssetPaths
    is blind to my assets, but remembered Haxe does not allow variable name starting with a digit. So tip of the day - make sure asset files names don't start with a digit
  • h

    high-evening-41088

    02/20/2023, 8:21 AM
    i need help i keep getting a Value Exception when I try to use one of my functions in my project
  • m

    mysterious-intern-42609

    02/20/2023, 10:43 AM
    Yo does anyone know how to fix this? I'm currently trying to use some shaders, but they keep glitching out. Whenever I apply the shader to the hud it blocks the game camera with a black background. Does anyone know how to fix this?
  • c

    curved-tiger-81069

    02/20/2023, 11:21 AM
    from what i see here your creating the
    testSprite
    and not setting its width or height in any way (manually setting it or using
    .makeSprite
    ), so its staying at 0, aka your just passing
    0
    and
    0
    into the shader
  • c

    curved-tiger-81069

    02/20/2023, 11:23 AM
    you could just use
    FlxG.width
    and
    FlxG.height
    if your trying to get the size of the screen
  • c

    curved-tiger-81069

    02/20/2023, 11:23 AM
    (which i think your trying to do with that?)
  • a

    able-action-74275

    02/20/2023, 12:17 PM
    I believe FlxCamera has a black background by default
  • a

    able-action-74275

    02/20/2023, 12:18 PM
    camera.bgColor = FlxColor.TRANSPARENT
    may help
  • a

    able-action-74275

    02/20/2023, 12:18 PM
    not sure about the exact syntax
  • m

    mysterious-intern-42609

    02/20/2023, 12:39 PM
    Tried both, I think it's a problem with the shader itself
  • m

    mysterious-intern-42609

    02/20/2023, 12:39 PM
    Since whenever I apply another shader it doesn't have this issue
  • e

    enough-lawyer-1858

    02/20/2023, 1:57 PM
    Maybe somehow the alpha is set to 1 always?
  • e

    enough-lawyer-1858

    02/20/2023, 2:00 PM
    @mysterious-intern-42609
1...945794589459...9809Latest