Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Drawing text over a bitmap?

Author
Message
Carlsburg
20
Years of Service
User Offline
Joined: 15th Dec 2004
Location:
Posted: 15th Dec 2004 23:54
Hey, just started a project, wanted to see if i could make a game similar to worms. however im stuck early on as i have a bitmap as my background, and i want to print some text onto the screen but it seems to be behind the bitmap and so dont show up at all. is there a way around this to bring it forward?

Cheers.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 16th Dec 2004 05:06
You have to use the command draw to front at the top of your program, and you also have to make sure that where you draw your bitmap comes before where you write the text in your main loop.

Desktop: AMD Athlon XP2800+,GeForce FX5200 128MB, 1.25GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Carlsburg
20
Years of Service
User Offline
Joined: 15th Dec 2004
Location:
Posted: 16th Dec 2004 22:39
hey. thanks for the tip, however it didnt seem to work, tried putting draw to front all over, when i dont load the bitmap the text displays fine, but when i display the bitmap the text refuses to show.

here is my code so far...

Login to post a reply

Server time is: 2025-05-24 07:47:42
Your offset time is: 2025-05-24 07:47:42