View Single Post
  #16  
Old 08-20-2008, 08:04 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by TheStan View Post
I'd have to tell you on AIM because I'm not allowed to put it out there like that.
I've made a function that flips images, but I'd rather have on built in.. It's also pretty inefficient and stuff.

Rescripted it in about 10 minutes... woohoo for highly inefficient & laggy workaround scripts!
PHP Code:
// NPC made by Tig
//#CLIENTSIDE
function onCreated() {
  
this.image "door.png";
  
flipHorizontal();
}

function 
flipHorizontal() {
  
this.null;
  for (
temp.0temp.getimgwidth(this.image); temp.++) {
    for (
temp.0temp.getimgheight(this.image); temp.++) {
      
showimg(200 this.ithis.image- (1/16), + (1/16));
      
changeimgvis(200 this.i3);
      
changeimgpart(200 this.iwh11);
      
this.++;
    }
  }
  
hide();
}

function 
flipVerticle() {
  
this.null;
  for (
temp.0temp.getimgwidth(this.image); temp.++) {
    for (
temp.0temp.getimgheight(this.image); temp.++) {
      
showimg(200 this.ithis.image+ (1/16), - (1/16));
      
changeimgvis(200 this.i3);
      
changeimgpart(200 this.iwh11);
      
this.++;
    }
  }
  
hide();
}

function 
flipBoth() {
  
this.null;
  for (
temp.0temp.getimgwidth(this.image); temp.++) {
    for (
temp.0temp.getimgheight(this.image); temp.++) {
      
showimg(200 this.ithis.image- (1/16), - (1/16));
      
changeimgvis(200 this.i3);
      
changeimgpart(200 this.iwh11);
      
this.++;
    }
  }
  
hide();

__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”

Last edited by Tigairius; 08-20-2008 at 08:28 AM..
Reply With Quote