https://linen.dev logo
Join Discord
Powered by
# openfl
  • m

    magnificent-fireman-89458

    02/09/2023, 6:51 PM
    its like not in the assets at all
  • m

    magnificent-fireman-89458

    02/09/2023, 6:56 PM
    i fixed it
  • m

    magnificent-fireman-89458

    02/09/2023, 7:01 PM
    ohh yeah i also was wondering if you can change the z pos of an sprie/element
  • r

    rhythmic-wolf-50922

    02/09/2023, 7:06 PM
    setChildIndex()
    can change the order of children in a container
  • m

    magnificent-fireman-89458

    02/09/2023, 7:14 PM
    ok how do i use it
  • m

    magnificent-fireman-89458

    02/09/2023, 7:14 PM
    i started using haxe a day ago so pls dont ask why in so stupid
  • r

    rhythmic-wolf-50922

    02/09/2023, 7:18 PM
    it's a method on the parent of the object you want to re-order
    Copy code
    haxe
    var container = new Sprite();
    var bitmap1 = new Bitmap(bitmapData1);
    container.addChild(bitmap1); // child index: 0
    var bitmap2 = new Bitmap(bitmapData2);
    container.addChild(bitmap2); // child index: 1
    container.setChildIndex(bitmap1, 1); // change bitmap1 from child index 0 to 1 (and bitmap2 moves to 0)
  • m

    magnificent-fireman-89458

    02/09/2023, 7:29 PM
    tnx
  • l

    lively-computer-90469

    02/12/2023, 6:20 PM
    is it possible to get the application version from the project.xml with a function call? doing this for a flixel game but asking here as i assume this has to do with openfl or lime
  • b

    bored-psychiatrist-68708

    02/12/2023, 6:43 PM
    I get it using
    Application.current.meta.get("version")
    you can also get the build number with
    Application.current.meta.get("build")
  • l

    lively-computer-90469

    02/12/2023, 6:44 PM
    thank you
  • w

    witty-island-52596

    02/19/2023, 5:09 PM
    i have
    Copy code
    @:bitmap("flixel/images/cameraMover.png")
    private class CameraMoverGraphic extends openfl.display.BitmapData {}
    and in my project.xml i have
    <assets path="../lib/assets" rename="flixel"/>
  • w

    witty-island-52596

    02/19/2023, 5:09 PM
    i can see the file in my export folder, but I'm seeing the error "Uncaught exception File not found 'flixel/images/cameraMover.png'"
  • w

    witty-island-52596

    02/19/2023, 5:11 PM
    does @:bitmap use paths via the asset manifest, or should I use the path to the asset before it gets exported
  • r

    rhythmic-wolf-50922

    02/20/2023, 4:31 PM
    if I recall correctly, when you use
    @:bitmap
    , you don't need to define anything in project.xml at all. any integration with the asset system will be handled automatically. just make sure that you use the correct path from your file system.
  • r

    rhythmic-wolf-50922

    02/20/2023, 4:32 PM
    in other words, you'd probably need something like "../lib/assets/images/cameraMover.png" instead of "flixel/images/cameraMover.png" because it needs the original path without renaming
  • f

    faint-crayon-93028

    02/20/2023, 7:40 PM
    how do i disable the built-in error handiling? i'm having issues with my HL crash handler because HL can continue, but the OpenFL error handler is closing the game
  • h

    hallowed-ocean-84954

    02/20/2023, 7:42 PM
    wouldn't it be better to figure out why the openfl handler is going off ?
  • a

    abundant-kite-3635

    02/21/2023, 10:40 PM
    I'm on EndeavourOS/Arch Linux When I use programs with HaxeFlixel/openFL or that I compiled myself. It has a painful high pitched sound for some reason. It could be my audio driver, but I don't know, this is only happening in haxe?
  • o

    orange-van-60470

    02/21/2023, 11:00 PM
    I don't think that is normal
  • a

    abundant-kite-3635

    02/22/2023, 7:46 PM
    The results varies, sometimes it just stops my entire system's sound
  • p

    prehistoric-king-95596

    02/22/2023, 9:30 PM
    is there a way to get the current audio channel data or like frequency data from open al?
  • a

    abundant-kite-3635

    02/22/2023, 9:52 PM
    This issue has been fixed by reinstalling my os.
  • m

    mammoth-iron-58709

    02/23/2023, 11:11 AM
    Ita been a while since ive played with openfl. So is openfl>hashlink>Nintendo switch a thing?
  • a

    able-action-74275

    02/23/2023, 11:15 AM
    yes but you need a dev account from Nintendo and sign their NDA
  • a

    able-action-74275

    02/23/2023, 11:15 AM
    and the versions of openfl/lime which work are a little old
  • m

    mammoth-iron-58709

    02/23/2023, 11:15 AM
    Good to know
  • m

    mammoth-iron-58709

    02/23/2023, 11:15 AM
    has anyone done it and launched a game?
  • m

    mammoth-iron-58709

    02/23/2023, 11:16 AM
    I wonder how solid all the control mappings and nintendo api stuff is
  • b

    bland-noon-32511

    02/23/2023, 11:24 AM
    Not exactly needing help but has anyone explored the idea of combining two raw audio data into one variable?
1...404142...57Latest