Draw background and text

Blitz3D Forums/Blitz3D Beginners Area/Draw background and text

Is there some way where you could draw a picture once and type to have text apperar on the screen?

graphics 1024,768,32,1
setbuffer backbuffer()

bground = loadimage("gfx/bground.bmp")

x = 330
y = 320

while not keydown(1)

if keyhit(16)
     text x,y,"q"
     x = x + 10
endif

wend


Don't use Double buffering :o) Use the front buffer for everything. Should work then.

or
graphics 1024,768,32,1
setbuffer backbuffer()

bground = loadimage("gfx/bground.bmp")

word$=""

while not keydown(1)
if keyhit(16) then word = word + "q"
drawblock bground
text 0,0,word
flip
wend

you forgot the flip


you forgot flip


No I didn't. The screen just flashed with it. The file is at http://www.freewebs.com/clownhunter/NewWinZip20File.zip Please help me.

Hey, the download isn't working. I'll try uploading it to my ISP.

Did you see Rob Farley's post? He's supplied the solution to your problem. what more do you want? :/

Yeah, but there's a picture of a laptop and when you get to the edge of the screen on the laptop, how would you make it go down a line when you're using Rob's "word" thing. The thing is really at http://my.dmci.net/~jsfreeman/NewWinZipFile.zip

Check the code archives for what you want.