So, what you need to do on your new code is to change this line:
Code: Select all
if xEnd>=TargetWidth then xEnd=TargetWidth-1
Code: Select all
if xEnd>=TargetWidth then xEnd=TargetWidth
You see the difference? ^-^=b
And finally, you forgot to place:
Code: Select all
ImageDestroy Sprite
Thanks once again, and I am so glad to help you, D.J.Peters!! Chao!!! (^-^)v