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 Professional Discussion / Displaying text over sprites?

Author
Message
Giroware
16
Years of Service
User Offline
Joined: 3rd Jul 2010
Location: object position x
Posted: 14th Jul 2010 15:40
I am trying to show GUI elements as sprites but I want my text to display in front of the sprite....How do I do this?? most GDKs do this automaticly

It's a dark business....A dark business indeed
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 14th Jul 2010 17:53
I had that problem when I made my GUI..... Here is a link to the discusion:
http://forum.thegamecreators.com/?m=forum_view&t=166450&b=1

If you just want a GUI, here's a link to mine:
http://forum.thegamecreators.com/?m=forum_view&t=166887&b=5

The fastest code is the code never written.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 14th Jul 2010 18:34
Hide the sprite when you create it.

Then in your loop, use paste sprite, then display your text.

My signature is NOT a moderator plaything! Stop changing it!
Giroware
16
Years of Service
User Offline
Joined: 3rd Jul 2010
Location: object position x
Posted: 14th Jul 2010 19:40
Good job guys, works like a charm
Thanks

It's a dark business....A dark business indeed

Login to post a reply

Server time is: 2026-07-25 16:20:08
Your offset time is: 2026-07-25 16:20:08