The Daily Click ::. Forums ::. Klik Coding Help ::. what's the best way to loop the screen on a stage that has a parallax background?
 

Post Reply  Post Oekaki 
 

Posted By Message

NMasutaa



Registered
  26/12/2004
Points
  301
26th June, 2008 at 16:54:09 -

If a stage has a parallax background, what's the best way to make the screen loop around so that the stage continues endlessly? Specifically, I'm trying to make a highway stage in which the player has to jump on top of one car to another until he reaches the boss fight at the end, which also takes place on moving cars on the highway.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th June, 2008 at 17:40:20 -

Not sure I read that properly, but try having no scrolling at all. Just a frame the size of the window? Might not work in your situation tho...

 
Image

Tell 'em Babs is 'ere...

aphant



Registered
  18/05/2008
Points
  1242
26th June, 2008 at 18:50:39 -

You could make the frame be as long as the level needs to be. You could also make the frame be 2.5x the size of the window and just use a detector to "throw" the player (and any other objects) to the other side of the screen.

 

nim



Registered
  17/05/2002
Points
  7233
26th June, 2008 at 19:49:03 -

I think the easiest way would be to use the Active System object (or similar object) and use that to create the moving background effect by [always] moving it 5 pixels left and wrapping it to x=25 every 5 frames. Obviously you don't need to use those exact values. Other objects will do the same trick, but the Active System object goes behind backdrop objects.

Image Edited by the Author.

 
//
   

Post Reply



 



Advertisement

Worth A Click