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.

Newcomers DBPro Corner / Display text on top of a background image

Author
Message
Martend
14
Years of Service
User Offline
Joined: 23rd Jul 2010
Location:
Posted: 23rd Jul 2010 12:24
Hello,

I'm trying to get text on top of a background image,
the idea is a computer with terminal as background and that text would appear on the terminal. At a later stage i want it to interact with the user, like getting his name, location etc.
But first it needs to say hello
This is my code so far:

What am i doing wrong is there a tutorial for it? i could not find one. thanks in advance!
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 23rd Jul 2010 16:56
First off, display mode 1366,768,32 is not supported on my computer. I had to change it to 1154,768,32 to get it to work. You might want to change it to a more common mode.

Secondly, you need to use the command SET CURRENT BITMAP 0 just after the COPY BITMAP 11,0 line.

So many games to code.......so little time.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Jul 2010 18:32
or this



Dark Physics makes any hot drink go cold.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Jul 2010 20:46
Yeah it is better to use LOAD IMAGE and PASTE IMAGE but don't use .jpgs... they tend to change solid colors to different shades. It's better to use .png so that it keeps colors exactly the way you want them and allows you to use semi-transparent colors (where you can see through them).

Martend
14
Years of Service
User Offline
Joined: 23rd Jul 2010
Location:
Posted: 23rd Jul 2010 21:15
Thank you very much for the tips, load and paste image works fine and also the .png works smoother!
I use the 1366 display resolution cause it is the native resolution on my m11x laptop. In a later stage I'll try to code how to grab the resolution on a computer where the game is running on.
First I have to learn how to replace text with new text, back to the tuts!
M

Login to post a reply

Server time is: 2024-09-28 20:29:51
Your offset time is: 2024-09-28 20:29:51