
01-05-2012, 06:36 PM
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
Something like this should work...
Calculate the distance between the two positions and that will give you roughly how many images you need to draw if each image is one title in width and height (16x16).
Calculate the delta x, y (final - initial)
For image = 1; image <= images; image++
Show image at x + (delta x * (image / images)), y + (delta y * (image / images)) |
|
|