slider with screen

hello everybody,

I am developing one game in which I have to slide whole scene and its contents also how its possible??

If possible than explain with code??
Thank you
[import]uid: 9664 topic_id: 3061 reply_id: 303061[/import]

You are trying to write a platform scroller, right? more like the pokemon or the final fantasy type of games, right?

As I understand, in corona, you have to create a display group, in this group place all your tiles that make the level, then scroll this group all the elements shall move with it.

If you create a rect as 10,10,100,100, this rect shall always be (unless you change it) be of 100 height and 100 width and shall be at 10,10 in reference to the group. If the group is placed at -10,-10; the rect is still going to be at 10,10 with respect to the group but on the screen since the group is placed at -10,-10 the rect shall be at screen co-ordinates 0,0

Hope this did not confuse you further

cheers,

Jayant C Varma [import]uid: 3826 topic_id: 3061 reply_id: 9168[/import]