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 Studio Chat / [SOLVED] SetText in front of Draw Commands

Author
Message
Creative Magic Man
11
Years of Service
User Offline
Joined: 14th Nov 2012
Location: Frinton On Sea, Essex, UK
Posted: 7th Apr 2020 22:22
Is is possible to make the SetText commands in front ( depth value ) of draw commands?

The help guide says that print commands go in front but these are not SetText commands.

I have tried changing the depths for both the draw command and the Text command but this has no efect.

I can change the transparency parameter on the Draw command, but it also softens the text!

Thanks in advance for any help.

David
Amazing creations start with a Fuzzy Vision
Dave - Creator, Developer and Visionary
Fuzzy Visions

The author of this post has marked a post as an answer.

Go to answer

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Apr 2020 22:41 Edited at: 7th Apr 2020 22:42
This post has been marked by the post author as the answer.
Try this;
Do your draw commands
Then;
render()
Then;
DrawText() for each of your text IDs (or whatever you want in front of the draw commands)
Then;
sync()
Creative Magic Man
11
Years of Service
User Offline
Joined: 14th Nov 2012
Location: Frinton On Sea, Essex, UK
Posted: 8th Apr 2020 12:38
Thanks blink0k for the quick reply. Excellent service.

It works OK now.

Here is some basic demo code to demonstrate this.


Amazing creations start with a Fuzzy Vision
Dave - Creator, Developer and Visionary
Fuzzy Visions

Login to post a reply

Server time is: 2024-04-25 14:53:43
Your offset time is: 2024-04-25 14:53:43