hi all,
in my game i want a counter that counts
the score.
this should'nt be a problem but i cant find anything in the docs that shows how its done.
thanx in advance!
hi all,
in my game i want a counter that counts
the score.
this should'nt be a problem but i cant find anything in the docs that shows how its done.
thanx in advance!
thanx but i've already looked trough that
any idea how i could make it work?
i wanna do something like this
int score =0;
textout(score);
Well then that'l be:
Code:void textprintf(screen,font,10,10,makecol(255,255,255),"%i",score); // screen means that whe will be drawing this text to the screen // font means whe are using the standerd bios font (8x8) // makecol(r,g,b) means the color using red green and blue (totally white in this case) // For the last 2 parts you need to know how printf() works in c/c++
thank you again
but i've tried exactly that
the last part *score* wont show?
well, then you're doing something wrong, pode.
i know somthing that im sure works but u need to use sdl.
What i posted sure works,if it doesnt the problems lies at his code, POST IT!Originally posted by willgell
i know somthing that im sure works but u need to use sdl.
Alright, lets all spoon-feed pode.Originally posted by pode
thank you again
but i've tried exactly that
the last part *score* wont show?
Code:void textprintf(screen,font,10,10,makecol(255,255,255),"score: %i",score);
OH! you ment that? DOH! i thought the whole thing dint print
i said you should know the standard printf()
what was that eibro??
.......... you!
the problem was not that i couldnt show "score"
but the variable *score* idiot
go spoon feed your mother
Calm down there buddy, no flame wars