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 / DirectX's DrawText above sprites?

Author
Message
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 29th Jun 2009 23:50
Even though I call the DrawText after the sprite command, it still appears below it, and it is obscured. Any way of setting the text's z-draw to above the sprite?


Your signature has been erased by a mod
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 30th Jun 2009 00:09
Sprites are not drawn by the sprite command, they are drawn internally, inside the dbSync() command, so you cannot draw things over them. The easiest way to overcome this is to use 'dbHideSprite' to hide all your sprite after you create them, and then use 'dbPasteSprite' to draw the sprite manually each loop. That way you can make them draw in the exact order you want.

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 30th Jun 2009 01:44
dbDrawSpritesFirst() seems to work for me.

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 30th Jun 2009 19:48
Diggsey, that worked a treat! Thanks a bunch. Also, Bran flakes, I am using 3d so the sprites would appear behind the 3d so that would not work.


Your signature has been erased by a mod

Login to post a reply

Server time is: 2024-10-01 05:52:23
Your offset time is: 2024-10-01 05:52:23