Image Scroller

Hi,

I would like to request an extension to images. The ability to make an image into a scroller, as you can do with iTorque. Lets say you have a single background image that you want to scroll with movement. Currently you need to have a minimum of two instances of that object (assuming only one axis of scrolling) or four instances (x and y scrolling). Once one image goes completely out of the visible area you need to jump it to the opposite side so that it can start to scroll into the visible area (assuming still scrolling in the same direction).

With iTorque you can have a single image instance that scrolls within itself. Being able to manually specify the x and y scroll index would also be very helpful for player controlled scrolling.

So for an example of an image 512x512 that has scrolled 200 pixels along the x axis, when the image is drawn it would take a rectangle 200 pixels wide from the right most side of the image, and render that to the left most side of an image. The remainder of the image would be drawn to the right of the previous rectangle.

a simplified example, just to be clear, where letters represent pixels

ABCDEFGHIJ
ABCDEFGHIJ
ABCDEFGHIJ
ABCDEFGHIJ

offset x by 3 pixels would render as
HIJABCDEFG
HIJABCDEFG
HIJABCDEFG
HIJABCDEFG

I hope that makes sense. It is a useful feature for background scrollers in iTorque, would be great to have in Corona too.
[import]uid: 110197 topic_id: 23083 reply_id: 323083[/import]