Draw background and text

Blitz3D Forums/Blitz3D Beginners Area/Draw background and text

clownhunter(Posted 2004) [#1]
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



Ross C(Posted 2004) [#2]
Don't use Double buffering :o) Use the front buffer for everything. Should work then.


Rob Farley(Posted 2004) [#3]
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


wizzlefish(Posted 2004) [#4]
you forgot the flip


clownhunter(Posted 2004) [#5]

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.


clownhunter(Posted 2004) [#6]
Hey, the download isn't working. I'll try uploading it to my ISP.


big10p(Posted 2004) [#7]
Did you see Rob Farley's post? He's supplied the solution to your problem. what more do you want? :/


clownhunter(Posted 2004) [#8]
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


WolRon(Posted 2004) [#9]
Check the code archives for what you want.