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 / How to show text on top of sprites

Author
Message
Nomad The Great
17
Years of Service
User Offline
Joined: 18th Apr 2008
Location:
Posted: 18th Apr 2008 20:26
I am re-creating a game I made a very long time ago in qbasic using darkbasic. That said the world map scrolls on screen underneath menus. Can anyone tell me how to get text to show on top of sprites? When my map moves to where text is is gets covered up.

Thanks in advance
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Apr 2008 21:21
You can do it a couple of different ways. Text won't ever actually appear on top of a sprite unless the image has the text incorporated into it. However, you can overlap 2 sprites, one that is text only with a transparent background and one that is you srpite image. The text sprite has to be created after the image sprite so that it has priority.

Another way is to use PASTE SPRITE while hiding the original sprite. Once you paste the sprite, it becomes an image and you can just put text directly over it. Check out the following link. Near the end of the thread I post an example that shows a method of text on sprite including sprite priority:

Text on Sprite

Enjoy your day.

Login to post a reply

Server time is: 2025-06-07 12:52:16
Your offset time is: 2025-06-07 12:52:16