djFlixel
djFlixel copied to clipboard
TextScroller issue
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);
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?
Paths.font('vcr.ttf') is used because i have custom file loading code
my target is windows
also i'll try this out 👍
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:
Out of curiosity, should I change my flixel-addons or flixel-ui versions too?
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!