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 / Sprite is infront of text , or not even showned.

Author
Message
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 13th Mar 2009 19:49
i am building a menu i made it with bool-s there is one bool caled SelectMusic

here is its code



this is good but the text isnt showned.
thats why i add a nothere command in the dark gdk void
"dbDrawSpritesFirst();"
but then i dont see the sprites, just the text and some objects..:S:S:S:S:S
help??!

Game.Love
WH8
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 3rd Apr 2009 02:32
You might want to use dbInk(), dbText(), dbSetTextFont(), dbSetTextSize, etc in an infinite loop to create your text. Get rid of dbDrawSpritesFirst(). To break out of the infinite loop, use the break command.



The above is just a hint. Insert the correct values to wherever I put "...". You can find more information on the functions in the Dark GDK Documentation. You can find the Dark GDK Documentation in the Documentation folder that is located in the Dark GDK folder. The Dark GDK folder is located in The Game Creators folder. The Game Creators folder.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Apr 2009 10:57
I am still learning how to use C++, however in basic we put the draw sprite first before the do loop, so I would think that this command dbDrawSpritesFirst() would go befor the while ( LoopGDK ( ) ) .

Dark Physics makes any hot drink go cold.
Lion Jin
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 3rd Apr 2009 11:02
You can hide the sprite ,then using "dbPasteSprite" to show them before draw text each frame.but this way, you might lost some features of sprite such as display priority

Another way is that,you can make the text to a image or use a bitmap font.
Lion Jin
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 3rd Apr 2009 11:04
dbDrawSpritesFirst() only make the sprite rendered before 3d object not 2d.
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 3rd Apr 2009 14:20
wow, text is realy bugy in gdk, maybe ill make my own plug-in for my next game:SS:S:S:

Game.Love

Login to post a reply

Server time is: 2024-09-30 21:33:40
Your offset time is: 2024-09-30 21:33:40