function load_wait(short a, short b, var time){
PANEL* ar=pan_create("bmap=c_map;",5);
var timex=0;
set(ar,SHOW);
ar.pos_x=a;ar.pos_y=b;
while(timex<time){wait(1); timex++;}
set(ar,TRANSLUCENT); //Allow alpha
while(ar.alpha>0){
ar.alpha-=20*time_step;
wait(1);
}
ptr_remove(ar); //remove the local created panel pointer
}
Last edited by Superku; 07/01/10 22:33.