you want to create a button ingame, when u click on it the screen start flashing red ?
i think i know what u have to do (it might not be the best solution but i think it works):
first create an image for the button
then make an alpha channeled image, make it as big as your screen, in this image draw the red light around the screen
then create a small image, also alpha channeled, make it like 10x10 and dont draw anything in it, just make it alpha channeled
after that we go to the code
dbLoadImage("<button image.tga>",1);
dbLoadImage("<glow image.tga>",2);
dbLoadImage("<the little image.tga",3);
dbSprite(1,dbScreenWidth()/2-<image width /2>,dbScreenHeight()/2-<image hieght / 2>,1);
dbSprite(2,0,0,2);
dbHideSprite(2);
while (1)
{
dbSprite(3,dbMouseX(),dbMouseY(),3);
if(dbEscapeKey())
exit(0);
if(dbSpriteCollision(3,1) && dbMouseClick == 1)
{
while(1)
{
if(dbEscapeKey())
break;
dbShowSprite(2)
dbSync();
Sleep(500);
dbHideSprite(2);
dbSync();
Sleep(500);
}
}
dbSync();
}
oh and also, there are probably alot of syntax errors, i couldnt test it in visual C++ i wrote it here