View Single Post
  #1  
Old 06-16-2004, 09:13 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
dynamic setshape2?

Ok so i dont really know if this is possibile or not yet, i know what im trying to do, and ive done it every way i can really think of.

What i was trying to do was use imgwidth and imgheight to get the first two numbers for setshape2 then based on that, turn it into the correct tiletype.

So here is what i did

NPC Code:

this.length = imglength(chair1.png);
this.width = imgwidth(chair1.png);



from that i get i think 5 for length and 3 for width, anyways

then I got here, and its where i have my question
NPC Code:

setshape2 this.length,this.width,{tiletypes};



now i guess what im wondering is if its possibile to set the tiletypes based on the length and width of an image, Say i had two diffrent chairs, but one is larger then the other. Mabye there is something i have overlooked, or this just isnt possibile yet. (or at all ever? )
__________________
Reply With Quote