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.

AppGameKit Classic Chat / draw 2d under text?

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Mar 2017 16:25
Is there a way to draw text objects on top of the 2D drawing commands? (box, ellipse)

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 16th Mar 2017 16:55
Hmmm, maybe you could draw the shapes then manually update the 2D without clearing the screen - I have messed with the update commands but can never get it working how I want, worth a try though.
The code is dark and full of errors
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 16th Mar 2017 17:02
What do you mean? Can you just draw the box and the position your text on top?

I actually did something a bit different. I create the text object, get its measurements, create a slightly bigger sprite box, position the box location and depth behind the text. But maybe my use case is different.

Login to post a reply

Server time is: 2024-09-30 01:36:09
Your offset time is: 2024-09-30 01:36:09