Something like I am have tileset - http://flashpunk.net/img/tut/swordguy.png
And my drawing code is - http://jsfiddle.net/WnjB6/
But how to do something like - drawTile(x, y, tile, width, height);
Now need to set tileX and tileY on tile, but how to do only one tile need to set and draw tiles from all tileset?
Something like now need tileX = 3, tileY = 1, but I am need - tile = 8 and draw same tile. 'http://flashpunk.net/img/tut/swordguyframes.png
How to do something like?
Thanks for help and sorry for my bad English language.