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 AppGameKit Corner / Showing text ontop of drawn box

Author
Message
Duncro
9
Years of Service
User Offline
Joined: 25th Jul 2015
Location:
Posted: 26th Jul 2015 11:30
Hi

Im trying to make a simple menu using drawbox and text.

Unfortunately the text seems to be hidden behind the box.



How would you force the text to appear ontop of it?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Jul 2015 13:45 Edited at: 26th Jul 2015 13:46
The Draw* commands always draw on top of everything else.

Is there a specific reason why you are using drawbox? It would be easier and more conventional to create a sprite...



Once the sprite is created it will be on the screen forever, until you delete it. It continues to exist between sync()s You never have to redraw it again.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Duncro
9
Years of Service
User Offline
Joined: 25th Jul 2015
Location:
Posted: 26th Jul 2015 16:20
Thanks, though i got a way around it using setrendertoscreen.
I am also planning on making a minimalistic vector graphic game later, so I wanted to learn this now.

I find sprites can look quite unclean. I'd have to make a menu box for each menu, otherwise the edges would look fuzzy and cheap when stretched.

However, now i am fighting with sprites so i can make a level, but that's for another post

Login to post a reply

Server time is: 2024-11-21 21:16:12
Your offset time is: 2024-11-21 21:16:12