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 / Text over background image

Author
Message
Oster200
13
Years of Service
User Offline
Joined: 21st Jan 2011
Location:
Posted: 25th Jan 2011 23:33
im trying to get my text over the background image so i made a really basic game i heard if have

dbHideSprite();
dbPasteSprite();
dbText();

these then it will work but i dont know where to put them in so i put them here:

#include "DarkGDK.h"

void DarkGDK()
{
dbSyncOn();
dbSyncRate(60);

dbHideSprite();
dbPasteSprite();
dbText();

dbLoadImage("background.bmp",1);

//dbSprite(1,0,0,1); not in use

char text[11];
int score = 0;

while (LoopGDK())
{
if (dbUpKey())
{
score += 1;
dbWait(300);
}
if (dbDownKey())
{
score-= 1;
}

dbCLS();

sprintf(text, "Score: %i", score);
dbText(0, 0, text);

dbSync();
}

return;
}

and when i do put it there i get this big thing saying that i have to break or continue but if i continue then it terminates somthing

so i am wondering how to get my text over back ground thank you very much

Login to post a reply

Server time is: 2024-11-19 14:24:17
Your offset time is: 2024-11-19 14:24:17