View Single Post
  #8  
Old 12-23-2001, 03:31 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by zell12
setimg and changeimgpart

can't figure em out
Setimg??? ummm U mean showimg =/

a basic example to get something in the top corner

showimg 201,@Here i am,screenwidth-150,60;
changeimgvis 201,4;

so if something should always appear at the same position u need to get it on vis-layer 4... this layer is pixel and is not level orientated, but windowsize... (thats why I use screenwidth)


so changeimgpart...

lets say u have a picture with 2 doors first starts at position x-pixel=0 y-pixel=0 and is 32*32 Pixel big second (the open one) starts at x-Pixel=33 y-pixel=0 and is 32*32 Pixel big too

(normally u wouldnt use a showimg for this, but it's just an example)

if(playerenters){
setshape 1,2*16,2*16;
showimg 1,door.png,x,y;
changeimgpart 1,0,0,32,32;
}
if(playertouchsme){
changeimgpart 1,33,0,32,32;
}

so if u enter it shows the first part of the picture if u touch the NPC the second part (silly example)

changeimpart is like this:
changeimpart <Index of the shown pic done with showimg>,<Pixel x so where the x starts in the Picture>,<Pixel y so where the y starts in the picture>,<width in Pixel of the part u want to show>,<height in Pixel of the imagepart u want to show>;

hope this helps...
__________________
No Webhost at the moment
Reply With Quote