scrolling background IPAD

OxygenOxygen Member Posts: 14
edited November -1 in Working with GS (Mac)
hello there !!!
I'm trying to make a scrolling background for an IPAD game.

this method by Quantumsheep works very well for iphone landscape, portrait but i don't know why this does work with IPAD portrait !?!

I tried this method with a background picture of 768*1024
thanks for help

"quantumsheep said:
You can make your background like this:

Say it's a starfield. Actor size doesn't matter - when you place it in your scene, just stretch it so it fills the screen.

This actor will contain the following

A movement behaviour (say direction 180, speed 90 if you're doing a side scroller).

Then underneath this a single rule:
When
Attribute self.position.X < - self.Size.Width /2

Change attribute self.position.X to self.Position.X + self.Size.Width + game.Display Size.Width

Then, put the actor in your scene as described above, and add a second instance of the actor next to it of equal size.

This will allow smooth scrolling, and will mean you can get rid of the wrap.

Hope that helps :)"

Comments

Sign In or Register to comment.