Parallax Scrolling with changing backgrounds

Greetings ~

I’m new to Corona, and I’m loving it so far.
But now I’ve come across a problem.
Would Parallax Scrolling & Changing backgrounds be possible ?
I’ve looked at most parallax scrolling modules for Corona but none of them seem to allow changing the backgrounds at runtime.

Any help would be very much appreciated.

Thanks :slight_smile: [import]uid: 199769 topic_id: 35654 reply_id: 335654[/import]

Greetings,

The parallax modules work really great (I used Griffin Adam’s), but what I want is while the game is played, there are certain times that the backgrounds in the parallax scrolling will be changed.
The modules initialize the backgrounds when the parallax module is instantiated, but what I’d like is to allow changing of backgrounds while the game is played.

Do you know what/where I should be looking at to get this kind of thing to work?

Thanks for the reply ~ [import]uid: 199769 topic_id: 35654 reply_id: 141767[/import]

@ ryanz wrote:
none of them seem to allow changing the backgrounds at runtime.

edited…after re-reading question

Place a display object in front of the background and pretend it’s is your background and change it.

You could make background1.isVisible = false and background2.isVisible = true to switch.

Would this work?

Nail [import]uid: 106779 topic_id: 35654 reply_id: 141766[/import]

@ryanz, look at my above post, I changed it.

I’m not sure how Griffin Adams parallax module works, but Caleb’s module will do what you want to do.

Perspective Link

Hope this helps,

Nail [import]uid: 106779 topic_id: 35654 reply_id: 141768[/import]

Greetings,

I have not tried your first suggestion, but will surely try it out.
I’ll check this link you shared too.

Thanks ~
[import]uid: 199769 topic_id: 35654 reply_id: 141770[/import]

Greetings,

The parallax modules work really great (I used Griffin Adam’s), but what I want is while the game is played, there are certain times that the backgrounds in the parallax scrolling will be changed.
The modules initialize the backgrounds when the parallax module is instantiated, but what I’d like is to allow changing of backgrounds while the game is played.

Do you know what/where I should be looking at to get this kind of thing to work?

Thanks for the reply ~ [import]uid: 199769 topic_id: 35654 reply_id: 141767[/import]

@ ryanz wrote:
none of them seem to allow changing the backgrounds at runtime.

edited…after re-reading question

Place a display object in front of the background and pretend it’s is your background and change it.

You could make background1.isVisible = false and background2.isVisible = true to switch.

Would this work?

Nail [import]uid: 106779 topic_id: 35654 reply_id: 141766[/import]

@ryanz, look at my above post, I changed it.

I’m not sure how Griffin Adams parallax module works, but Caleb’s module will do what you want to do.

Perspective Link

Hope this helps,

Nail [import]uid: 106779 topic_id: 35654 reply_id: 141768[/import]

Greetings,

I have not tried your first suggestion, but will surely try it out.
I’ll check this link you shared too.

Thanks ~
[import]uid: 199769 topic_id: 35654 reply_id: 141770[/import]