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 / How to draw text infront of sprites

Author
Message
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 26th Nov 2009 19:12
Hello.

how can i do it? i tried dbDrawSpritesFirst(), it just doesn't draw the sprites if i have any 3d object.
dbDrawToFront(), i dont know if it has something to do with text, but it doesnt make any change

thanks.

Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 26th Nov 2009 20:44
Just put the dbText after all the model loading code. Or after the code where the model refreshes.
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 26th Nov 2009 20:59
my dbText is right before the dbSync in the loop, and my object doesn't update, nor my sprites

Ovan35
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location:
Posted: 30th Nov 2009 18:13
I wish I had a solution for you Hassan.I just wanted to say that I've been having the same problem too.The first time I had the problem it was solved with the dbDrawSpritesFirst() command but when I tried it again for a seperate title screen it didn't work.
I'm going to leave the code for the part that worked here.Maybe it will help you in some way.



It was such a small seed... I needed to find out what was growing inside. And there was only one way to find out. So I decided to raise it.

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 30th Nov 2009 19:12
the problem with dbDrawSpritesFirst() is that it draws sprites even before 3d objects, so they are displayed over it ( i think )

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 1st Dec 2009 08:54
this

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 3rd Dec 2009 13:21 Edited at: 3rd Dec 2009 13:25
thanks, that works! ( sorry for the late reply )

prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 3rd Dec 2009 18:18
An easier way is to use dbPasteSprite after drawing it to the screen (and hiding it), then it goes in the order that you call the commands in

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 3rd Dec 2009 19:26 Edited at: 3rd Dec 2009 19:27
you should have said that earlier xD, thanks alot!

Login to post a reply

Server time is: 2024-11-24 17:51:01
Your offset time is: 2024-11-24 17:51:01