I have a complaint...

Miscellaneous Forums/General Discussion/I have a complaint...

I'm sure this is old news but why ... WHY did Mark have to replace Text(X, Y, Text) with DrawText(Text, X, Y) and not include that in the .bb - .bmx file conversion process. This is just painful.

Ah ... Text still works (maybe due to a mod) but there are no center flags. I'm partially relieved.

You want to complain! Look at these shoes. I've only had them three weeks and the heels are worn right through....If you complain nothing happens, you might as well not bother...Oh my back hurts, it's not a very fine day and I'm sick and tired of this office.

Actually is the source available for the BB to BMX converter?
It's a handy little tool to have but needs more filters putting in ..

EXAMPLES
BB        BMX
==============
Color    SetColor
Oval     DrawOval
Rect     DrawRect


Add this function to your code:
Function Text(X:Float, Y:float, T:String)
    DrawText(T,x,y)
end function


also control-H replaces the commands for you

And with center tags...
Function Text(xPos_arg:Int, yPos_arg:Int, text_arg:String, centreX_arg:Byte = False, centreY_arg:Byte = False)
	DrawText text_arg,xPos_arg - ( TextWidth(text_arg)*(.5*centreX_arg) ),yPos_arg - ( TextHeight(text_arg)*(.5*centreY_arg) )
End Function


Stop using the DrawText command anyway, it's bad for you.

And the environment.

drawtext is useful for debugging.

drawtext is useful for anything. I might code an ascii wolfenstein just to spite you, hotcakes.

drawtext is useful for anything. I might code an ascii wolfenstein just to spite you, hotcakes.

Ooooo. I smell a conflict. :P

Ooooo. I smell a conflict.
Actually I think that might be me. I had sprouts earlier. :x

Ooooo. I smell a conflict. :P

Me too... I just hope neither of them starts acting like an ascii-hole... XD

I might code an ascii wolfenstein just to spite you, hotcakes.

More dangerous than the LHC.

What's so bad with drawtext and what should be used in its place?

What's so bad with drawtext


Its very slow to render... hurts your fps!

what should be used in its place?


Bitmap fonts...

For some reason those conversions have been stubbed out (in the bb2bmx source file).

Stop using the DrawText command anyway, it's bad for you.
Yeah for some reason it's massively slow, so do like threvills says and use Bitmap Fonts.