It will very useful to scroll texture coordinates and setting wrap mode (like GL_TEXTURE_WRAP_S/GL_TEXTURE_WRAP_T texture parameters in OpenGL). This will help to make effects like floating clouds or moving terrain.
Something like that:
local image = display.newImage (…)
image.xScroll = 1.5
[import]uid: 7301 topic_id: 3327 reply_id: 303327[/import]
I also requested a command to easily create images out of a texture using a clipping rectangle -example:
[lua]MyImage = display.newImageFromClip( “my_texture_atlas.png”, clipX, clipY, clipW, clipH )[/lua]
This would not only allow to create images from any area on a texture atlas, but also to “move” and “scroll” an image’s content simply my moving it’s clipping coordinates.
If we could combine both, as better (making images from any clipped areas on a texture AND move the image’s content without changing the clip position -by defining additional xOffset / yOffsett parameters to the command above).
If Corona uses UV-Coordinates in any way, this would actually be quite simple. [import]uid: 10504 topic_id: 3327 reply_id: 9955[/import]