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

    proud-twilight-29405

    05/27/2023, 6:54 AM
    yee
  • p

    proud-twilight-29405

    05/27/2023, 6:54 AM
    stickFlash was the demo that I created natively in Flash 8
  • b

    broad-gpu-14081

    05/27/2023, 6:54 AM
    I guess you have to use pooling for your ninjas and pre-create some of them before using.
  • p

    proud-twilight-29405

    05/27/2023, 6:54 AM
    stickFlixel is attempting to port as a way to learn this engine
  • e

    elegant-glass-62997

    05/27/2023, 7:05 AM
    The issue appears from the very 1st spawn... Doesn't seem normal to me...
  • e

    elegant-glass-62997

    05/27/2023, 7:06 AM
    same issue with hashlink too. But the html5 build is smooth, no frame drops.
  • e

    elegant-glass-62997

    05/27/2023, 7:10 AM
    html5 debug build is constantly 59-60fps

    https://cdn.discordapp.com/attachments/165234904815239168/1111914325939073044/dojo14.gif▾

  • a

    adventurous-dawn-47885

    05/27/2023, 7:17 AM
    It seems
    origin
    doesn't work the same way for FlxText as it does for its parent class of FlxSprite?
    Copy code
    score.origin.set(1000, 1000);
    score.angle = 45;
    In this code,
    score
    is still just rotating about its midpoint. Is there a workaround for this?
  • t

    tall-teacher-57409

    05/27/2023, 8:36 AM
    hm you can look at shader toy
  • a

    ambitious-knife-25690

    05/27/2023, 11:52 AM
    this is stuttering as well tho
  • a

    ambitious-knife-25690

    05/27/2023, 11:53 AM
    it appears like it happens directly after the slash attack
  • a

    ambitious-knife-25690

    05/27/2023, 11:53 AM
    its just less obvious on html5
  • q

    quiet-student-10808

    05/27/2023, 12:22 PM
    Does flixel have a way to draw primitive shapes? I want to draw a circle currently and have found FlxShapeCircle but using that, I have to draw to a FlxSprite and I want increase it's size over time as I want to use if for an explosion/collision effect so it's not ideal. Not a huge issue, just wondered 🤔
  • b

    broad-gpu-14081

    05/27/2023, 1:09 PM
    There are drawing utils https://api.haxeflixel.com/flixel/util/FlxSpriteUtil.html#drawCircle .You can try to change sprite scale instead. Also, you can use openfl api to draw but in this case you also have to manage openfl display objects by yourself.
  • q

    quiet-student-10808

    05/27/2023, 1:14 PM
    Awesome, thank you for this 👍 Yes, I was hoping not to have to drop down to openfl if possible. The scale solution is something that I hadn't thought of and might be the way for now.
  • b

    broad-gpu-14081

    05/27/2023, 1:16 PM
    I am not sure but using these utils to constantly redraw seems to be slow.
  • b

    broad-gpu-14081

    05/27/2023, 1:17 PM
    Every time you call the method flixel draws something to bitmap.
  • b

    broad-gpu-14081

    05/27/2023, 1:18 PM
    And in this case using openfl looks prefarable since it does the same to draw, but doesn't touch bitmap.
  • q

    quiet-student-10808

    05/27/2023, 1:30 PM
    I took closer look and you're right. Having to redraw to an image is not ideal in my case for multiple reasons. I'm going to brush of my old opengl knowledge see what I can achieve with openfl.
  • b

    broad-gpu-14081

    05/27/2023, 1:31 PM
    try to scale, it looks like the easiest way to animate inflation (but probably the ugliest)
  • e

    elegant-glass-62997

    05/27/2023, 1:34 PM
    It happens at the moment of enemy spawning. Maybe the gif is misleading. That's why I recorded it with the fps table on
  • h

    hallowed-ocean-84954

    05/27/2023, 1:49 PM
    If I'm seeing it correctly it looks like it happens when a new ninja appears and when there is a slash attack. In both cases there is some kind of particle effect - white smoke as ninjas appear, blood spurting during the attack. I would try turning those effects off as a test to see if that's what's causing it ?
  • m

    most-eve-98431

    05/27/2023, 2:15 PM
    Not related but how does the attack’s hitbox look?
  • b

    better-ability-6982

    05/27/2023, 3:18 PM
    I see some comments here mentioning
    <window antialiasing="0" fullscreen="false" resizable="false"/>
    and settings like that. Are these settings documented anywhere? https://api.haxeflixel.com/lime/ui/Window.html I found this API documentation and it lists some settings like 'fullscreen' and 'resizable' -- but 'antialiasing' isn't listed. Is that a real tag? If so where is it documented?
  • b

    broad-gpu-14081

    05/27/2023, 3:34 PM
    Check this https://lime.openfl.org/docs/project-files/xml-format/ . Also note Lime doc did not update for a long time and many new things are mentioned only in the changelog (check both for Lime and OpenFl)
  • b

    broad-gpu-14081

    05/27/2023, 3:35 PM
    You can also try to reach dev about this doc issues.
  • b

    broad-gpu-14081

    05/27/2023, 3:36 PM
    Seems like if many people complain the doc might become better.
  • d

    dazzling-ocean-80407

    05/27/2023, 5:43 PM
    is there an option for ShaderEd? or is shadertoy the only one supported through libraries
  • b

    bland-noon-32511

    05/27/2023, 5:48 PM
    I think you can use ShaderToy shaders, if you know how to convert the syntax efficiently
  • b

    bland-noon-32511

    05/27/2023, 5:49 PM
    I think there is a possibility of using ShaderEd in the same manner you would convert ShaderToy to HaxeFlixel
1...980398049805...9809Latest