Hi!
I have here a COG that changes a custom made 256x256 blue MAT file into stars2.mat, and tints the room red. But it crashes when I try!
Help?
/Edward
I have here a COG that changes a custom made 256x256 blue MAT file into stars2.mat, and tints the room red. But it crashes when I try!
Code:
# See the inside of the tie from a screen! # # By Edward flags=0x240 symbols message startup message activated surface screen thing cam surface window0 surface window1 surface window2 surface window3 surface window4 surface window5 surface window6 surface window7 surface window8 sector room1 sector room2 material type0 material type1 int cmp=0 local int z=0 local end # code startup: SetColorMap(room1,cmp); SetColorMap(room2,cmp); for(z=0; z<9; z=z+1) { SetSurfaceMat(window0[z],type0[cmp]); } return; activated: if(GetSenderRef()!=screen) return; If(cmp==0) { cmp=1; SetCameraFocus(0,cam); } else { cmp=0; SetCameraFocus(0,GetLocalPlayerThing()); } SetColorMap(room1,cmp); SetColorMap(room2,cmp); for(z=0; z<9; z=z+1) { SetSurfaceMat(window0[z],type[cmp]); } return; end
Help?
/Edward