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 / dbText Help

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 19th Aug 2009 00:44
how do I set text to appear above a dbBox ??

#ifdef __NEWBIE__
MakeAnAwesomeGame(lots of badies, lots of guns, lots of stuff to do, BIG level)
#endif
CokeBoi
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 19th Aug 2009 01:52
Positioning. Just take the X,Y of the box and keep on adding to it until it is above the box. At least, thats what I think you should do.

LOL
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 19th Aug 2009 09:47
i mean like in layers, like the text is on the box like a button, when i do mine it's under the box

#ifdef __NEWBIE__
MakeAnAwesomeGame(lots of badies, lots of guns, lots of stuff to do, BIG level)
#endif
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 19th Aug 2009 12:47
Make a sprite from your text is an easy way to control it;s drawing priority...

Make your text in the top left, use dbGetImage to get the image of it, then dbSprite to turn it into a sprite... the dbSpritePriority will adjust the priority that it draws..

Im not sure if you can adjust the priority of GDK's 2d drawing functions, but you can also get an image of them and make them sprites....

There is probably a few different ways you could go about it..

If it ain't broke.... DONT FIX IT !!!
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 19th Aug 2009 16:21
you could also just call your 'dbText' after you have drawn the box! ( remember to switch colors/'dbInk' in between! )

They say it's better to burn out than it is to fade away...
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 20th Aug 2009 10:00
i have callen it after but it's still under the box

#ifdef __NEWBIE__
MakeAnAwesomeGame(lots of badies, lots of guns, lots of stuff to do, BIG level)
#endif
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 20th Aug 2009 10:06
I have made a button class if anyone want's to see:



What do you think? Give me feedback and be brutally honest

#ifdef __NEWBIE__
MakeAnAwesomeGame(lots of badies, lots of guns, lots of stuff to do, BIG level)
#endif
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 20th Aug 2009 10:07
WOOPS wrong thread sorry!

#ifdef __NEWBIE__
MakeAnAwesomeGame(lots of badies, lots of guns, lots of stuff to do, BIG level)
#endif

Login to post a reply

Server time is: 2024-11-20 17:42:16
Your offset time is: 2024-11-20 17:42:16