View Single Post
  #10  
Old 03-08-2011, 01:03 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by fowlplay4 View Post
Keep in mind:

player.x is a tile-based coordinate, and getimgwidth is by pixels. 1 tile width/height = 16 pixels.

therefore... tile width = (pixels / 16)
and what about:

getimgwidth( this.image)/16
Reply With Quote