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

    little-postman-49136

    08/20/2022, 11:46 PM
    Wait no-
  • t

    thousands-state-46635

    08/21/2022, 4:48 AM
    Awesome!
  • t

    thousands-state-46635

    08/21/2022, 7:31 PM
    How would I make a Camera class? I want to be able to move around the map for this tile editor, but keep the UI with the camera, like flixel's scrollFactor
  • b

    best-agent-85158

    08/21/2022, 9:05 PM
    masks: openfl DisplayObjects have a
    mask
    property that allows only showing a portion of an object, specified by a filled shape:
    Copy code
    hx
    var m = new Shape();
    m.graphics.beginFill(0xFFFFFF);
    m.graphics.drawCircle(100, 100, 100);
    m.graphics.endFill();
    displayObject.mask = m;
    // a circle in 100, 100 with a radius of 100 will be the only visible portion of displayObject
  • t

    thousands-state-46635

    08/22/2022, 1:44 AM
    Ahh iknteresting
  • t

    thousands-state-46635

    08/22/2022, 8:25 PM
    But is there a better way? Like one that doesnt depend on Masking
  • b

    best-agent-85158

    08/22/2022, 8:52 PM
    I mean, you could also just move a sprite around
  • t

    thousands-state-46635

    08/22/2022, 11:59 PM
    What about in the case of multiple cameras? Like one for UI and one for the world
  • t

    thousands-state-46635

    08/23/2022, 4:13 AM
    And like, i feel like more cooler things could be done if the camera wasnt just some wrapper class to move or scale the sprite
  • b

    bright-gpu-74537

    08/23/2022, 5:49 AM
    scrollRect
  • b

    bright-gpu-74537

    08/23/2022, 5:49 AM
    https://books.openfl.org/openfl-developers-guide/display-programming/manipulating-display-objects/panning-and-scrolling-display-objects.html
  • c

    curved-king-43987

    08/23/2022, 4:50 PM
    So I'm directing and working on a Friday Night Funkin game that is mainly focused on a more multiplayer aspect Some programmers on the team were having issues with an eof error when trying to write data to the server. I will attach the code block where the system is supposed to write to the server. If anyone could help, it would be greatly appreciated! Please ping me or DM

    https://media.discordapp.net/attachments/162395145352904705/1011658522716557322/unknown.png▾

  • l

    loud-salesclerk-7438

    08/23/2022, 7:05 PM
    I don't think you have posted nearly enough info to even start helping you. your screenshot (what is it with everyone posting screenshots for literally everything?!? is that a FNF thing?) shows some code that may or may not be involved, who knows. what have your people done to debug your problem? what is server code, what is client code, where does it run, what targets are they using? do you have a small repro? what is the exact error message, where does it occur, what does your stack trace look like?
  • c

    curved-king-43987

    08/23/2022, 9:32 PM
    I don't know 3/4 of what you just said. Am I able to put you in a GC with the people working on it?
  • t

    thousands-state-46635

    08/23/2022, 9:37 PM
    HEs asking you to post the code, not just a screenshot
  • t

    thousands-state-46635

    08/23/2022, 9:37 PM
    And any erros
  • t

    thousands-state-46635

    08/23/2022, 9:37 PM
    Especially since your image isn't working
  • c

    curved-king-43987

    08/23/2022, 9:38 PM
    It's an entire PlayState
  • c

    curved-king-43987

    08/23/2022, 9:38 PM
    Like 2000 something lines
  • t

    thousands-state-46635

    08/23/2022, 9:38 PM
    Github gists, pastemyst
  • c

    curved-king-43987

    08/23/2022, 9:38 PM
    Oh wait
  • t

    thousands-state-46635

    08/23/2022, 9:39 PM
    Dont think multiplayer code would exactly be scatterred around 2k lines, a majority of it would be in specific areas
  • c

    curved-king-43987

    08/23/2022, 9:39 PM
    Correct, and I don't know those areas
  • c

    curved-king-43987

    08/23/2022, 9:39 PM
    @best-oil-63421
  • t

    thousands-state-46635

    08/23/2022, 9:39 PM
    Also why aren't the programmers here? They should be the one asking, they know more on the technical side
  • t

    thousands-state-46635

    08/23/2022, 9:39 PM
    Ah
  • t

    thousands-state-46635

    08/23/2022, 9:43 PM
    Ty, will try this out\
  • c

    curved-king-43987

    08/23/2022, 9:49 PM
    Why the ah
  • a

    ambitious-knife-25690

    08/23/2022, 9:50 PM
    you need to narrow down your issue to a suitable amount to help people help you
  • h

    hallowed-ocean-84954

    08/23/2022, 9:50 PM
    this is magnumsrt's query again about the mphx thing ? the code looked familiar. I guess that's still not solved. It seems like a question for mphx
1...567...57Latest