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.

Dark GDK / Text appears under my sprites

Author
Message
jontepd
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: Sweden
Posted: 2nd Jun 2009 14:28
If i want to output a piece of text using the dbText function, the piece of text provided into the function appears under my sprites. I.e, i can't see the text since the sprites are in the way. Is there a way to output the text over the sprites instead of under them?
Serial Velocity
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 2nd Jun 2009 17:58
Try drawing the text after you draw the sprite, like put dbText() after dbSprite() or whatever your using.

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 2nd Jun 2009 20:21 Edited at: 2nd Jun 2009 20:21
@Serial Velocity
That won't work

What you can do is to hide the sprite using 'dbHideSprite', and only display it using 'dbPasteSprite' (You still have to use 'Sprite' to create it to begin with). As long as you call 'dbPasteSprite' before you draw the text, it will appear behind.

jontepd
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: Sweden
Posted: 3rd Jun 2009 11:13
Thanks, that worked =]

Login to post a reply

Server time is: 2024-10-01 03:39:43
Your offset time is: 2024-10-01 03:39:43