Example: I want to display "Weapon 1 Selected!!" for 7 seconds in the lower left corner.
Thanx,
ViPeR
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Example: I want to display "Weapon 1 Selected!!" for 7 seconds in the lower left corner.
Thanx,
ViPeR
struct msg
{
char *text, color;
unsigned short x, y;
unsigned short timeinit, length;
};
for each message on the screen (maybe a global expandable linked list) and each frame you would run through the list of current messages and compare timeinit to timeGetTime(), and if timeGetTime()-timinit > length, you remove that message from the list, otherwise you blit it onto your buffer at (x,y)
hope this helps