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.

Author
Message
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 28th Oct 2016 20:38
Hi,
Is there any way to draw all the text objects above all the sprites.
I am wondering if there is a single command for this.
I know that I can 'split' the sync() command but in this case I have to draw all of my sprites one by one. I don't want this

thanks
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 28th Oct 2016 21:39
There is a SetTextDepth() command. It works like all the other set depth commands do
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 29th Oct 2016 19:07
Thanks for your response, but as I mentioned before it would be nice if there were a single command for all text objects.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Oct 2016 08:39
It works just the same as sprites, you have to set each of these individually too. Everything starts at depth 10.
I tend to create a function that sets all of the defaults for a sprite or text or anything else...

setTextDefaults(textID)

By calling this function after creating your text, you can set the default depth, alignment etc.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-04-20 10:52:15
Your offset time is: 2024-04-20 10:52:15