Here is a pan_create that I use for button countdown timers on abilities, I hope it helps you.

Code:
function button_ctr04()
{
button_counter_panel04 = pan_create ("scale_x = .8; scale_y = .8; bmap = buttoncounterpanel.tga; pos_x = 455; pos_y = 665; window (1,1,43,50, buttoncntr.tga,timerbutton04,0); flags |= VISIBLE;", 2);
while (charge_bolt_countdown == 1)
{
reset (button_counter_panel04, VISIBLE);
timerbutton04 += 43;
set(button_counter_panel04, VISIBLE);
wait (-.227272);
}
pan_remove (button_counter_panel04);
timerbutton04 = 0;
}




you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly