///////////////////////////////
//if this was lite-c i would make a BMAP* array, that would make life easier,especially at changebmap()
bmap b1 = "sp.tga";
bmap b2 = "sp2.tga";
bmap b3 = "sp3.tga";
panel ui {
bmap = b1;
flags = VISIBLE;
}
var bmapno = 1;
on_e = changebmap;
function main(){
wait(1);
}
function setbmap(bmp1){
ui.bmap = bmp1;
}
function changebmap(){
if(bmapno==1){
setbmap(b2);
bmapno =2;
return;
}
if(bmapno==2){
setbmap(b3);
bmapno =3;
return;
}
if(bmapno==3){
setbmap(b1);
bmapno =1;
return;
}
}
this cycles through 3 images?
this was the problem or i got you wrong?
if you assign changebmap to a button istead of E it should work.