Input2$ problem with cls

Blitz3D Forums/Blitz3D Beginners Area/Input2$ problem with cls

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You might try just retyping the sctring every loop and using something like:


strboxwidth = len(buffer$) * FontWidth()
strboxheight = FontHeight()



The using the Text coodinates, as the X,Y draw a empty box. Do this before rerwiting the text to the screen.

If you need to preserver the background simply get the background(CopyRect) using the obove size before each text write then redraw it then put the text on it again. Just remember to clear the text with the background saved from the previos pass, and you should be good.

Fliping should eliminate any flicker from this. While the above methos is slow( mostly due to the whole getting backgroun rectangle every pass ) it should be fine for you if you are using a INPUT anyway as that stops execution anyway.