View Single Post
  #9  
Old 03-01-2007, 10:52 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by JkWhoSaysNi View Post
Is there any way to set where the img starts (in pixels) relative to the NPC? I'd like to use setimgpart() but basically do:

setimgpart("image.png",-10,0,width,height);

to give the image a transparent border on the left of 10px. Is this at all possible? I could do it with showimg, but it doesn't move in pixels unless I set the layer to 5 but with the layer at 5 i can't easily put the image in the correct place relative to the level.


Is this possible?

Thanks.
This thread seems to have derailed a little. layer 3 and lower places the showimg per tile. if you want to move it just a pixel, well its just a little math.
One tile is 16x16 pixels, so if you want to move it a pixel on the level space, you move it by 1/16 tiles, which is equal to one pixel =)
__________________
Reply With Quote