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 / printing text problem

Author
Message
pokimon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 28th Apr 2010 13:59
how can i bring text to front, cus when i place background it covers it n i can't see it

#include "DarkGDK.h"

void DarkGDK() {
dbSyncOn();
dbSyncRate(60);
/*dbLoadImage ( "backdrop.bmp", 1 );
dbSprite ( 1, 0, 0, 1 );*/
while (LoopGDK()) {
dbCLS();
dbPrint("Hello World!");
dbSync();
}

return;
}
pokimon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 28th Apr 2010 19:48
cant i print text over the image or sprite
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 28th Apr 2010 20:15
RichBurb
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: The Dark Side of the Moon
Posted: 28th Apr 2010 20:23
Try pasting the sprite into the background first, then printing on top of it.
[
#include "DarkGDK.h"

void DarkGDK()
{
dbSyncOn();
dbSyncRate(60);
dbLoadImage ( "backdrop.bmp", 1 );
dbSprite(1,100,100,1);//create the sprite
dbHideSprite(1);//hide sprite

while (LoopGDK())
{
dbCLS();
dbPasteSprite ( 1,0,0);//paste sprite into background
dbText(0,0,"Hello World!");

dbSync();
}

return;
}
]
pokimon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 28th Apr 2010 20:44
no difference..
pokimon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 28th Apr 2010 22:49
oh wicked..
thx a lot!

Login to post a reply

Server time is: 2024-11-20 01:44:51
Your offset time is: 2024-11-20 01:44:51