Thread: Gfx Noob!
View Single Post
  #7  
Old 12-01-2004, 09:18 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Loriel
Seconded.

rofl. Splitting a gui in multiple parts (aka decoupling?) is a Good Thing.
deff not , its much easier to to script as 1, and the code is a lot cleaner

this.w = {50,110,170};
this.h = {80,140,,200};
for(img=0;img<3;img++){
showimg 201,img1.png,x,y;
changeimgvis 201,4;
changeimgpart 201,0,0,this.w[img],this.y[img];
}

is a lot cleaner than

showimg 201,img1.png,x,y;
changeimgvis 201,4;
showimg 201,img2.png,x,y;
changeimgvis 201,4;
showimg 201,img3.png,x,y;
changeimgvis 201,4;


Hence the state.png!
Attached Thumbnails
Click image for larger version

Name:	state.png
Views:	143
Size:	6.2 KB
ID:	30276  
__________________


Last edited by ZeroTrack; 12-01-2004 at 09:35 PM..