You can have a solid, coloured rectangle behind the words by simply drawing the rectangle first. 2D commands appear on screen in the order they were drawn.
If you mean a semitransparent rectangle (I assume this is actually what you want), you'll need to look into replacing the 2D system with a 2D-in-3D system, as Blitz's pure 2D engine can't handle alpha or other effects more advanced than either-do-or-don't-plot.
Good 2D-in-3D engines include FastImage (costs money, but the best option by far), Draw3D (free, also very powerful) and Sprite Candy (costs money, but bundles a lot of game framework code).
|