djFlixel icon indicating copy to clipboard operation
djFlixel copied to clipboard

TextScroller issue

Open Joalor64GH opened this issue 1 year ago • 5 comments

I keep getting this error: Called from states.BootState::create states/BootState.hx line 13

On this line:

        var ts = new TextScroller("Loading... Please Wait :)", 
            {f:Paths.font('vcr.ttf'), s:16, bc:Pal_CPCBoy.COL[2]}, 
            {y:100, speed:2, sHeight:32, w1:0.06, w0:4}
        );
        add(ts);

Joalor64GH avatar Feb 04 '24 00:02 Joalor64GH

hey, idk, it works on my end. make sure you have flixel: [5.5.0] lime: [8.1.1] openfl: [9.3.2] and latest djflixel, also haxe 4.3.3 also what target are you building to?

Checkout that Paths.font('vcr.ttf') is it getting the font? or is it null or something?

simplescreenrecorder-2024-02-04_05.26.33.webm

john32b avatar Feb 04 '24 03:02 john32b

Paths.font('vcr.ttf') is used because i have custom file loading code my target is windows

also i'll try this out 👍

Joalor64GH avatar Feb 04 '24 03:02 Joalor64GH

could it be the custom font loading is bugging out djFlixel 🤔 also excuse the TextScroller class file, now that I am looking at it, the constructor comments are wrong and the parameters setting could be more polished :dizzy_face:

john32b avatar Feb 04 '24 04:02 john32b

Out of curiosity, should I change my flixel-addons or flixel-ui versions too?

Joalor64GH avatar Feb 09 '24 16:02 Joalor64GH

I'm guessing no, since djFlixel doesn't use any of those libraries. did your code work? try calling the textscroller with a default font or something to narrow the problem down!

john32b avatar Feb 09 '24 19:02 john32b