Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.