I want to have a "see how many things you can get in the time limit" kinda game
here is the relevant part of my code :
dbSetTextSize(30);
char ctime [9],stime [9];
_strtime( stime );
// imgages
dbLoadImage("pacman.png",1);
dbLoadImage("box.bmp",2);
// sprites
dbSprite(1,200,200,1); //pac man 1
dbOffsetSprite(1,dbSpriteWidth(1) / 2,dbSpriteHeight(1) / 2);
dbSprite(2,rand()%550,rand()%375,2); // random block 2
while(LoopGDK())
{
// Text
_strtime( ctime );
dbText(0,0,dbStr(ctime-stime));
you can ignore the middle part the aim in the end is to have a timer that reaches 0 when 10s are up but when i take time(current ctime) from start time( stime) i get 20 constantly and also i get this error once the game has quitted ever since the time addition
i need to know a). a totally different take on the time thing
or b). a fix for my time thing
and c). an explanation to the error (image attached)
help??
-James