iPad scrolling background help
Stormtrix
Member Posts: 256
Hi there,
Trying to get get a simple scrolling background to work for the iPad.
Been trying a few of the solutions i've found in the forums, but i think i'm just not getting the
right positioning numbers down.
First do you enable or disable wrap-X for the scene?
This is what i'm trying..
Scene is 2048x768, Camera stays just in 1024x768 2 Actors - Water1 and Water2
Same rules for both except position x number
Move 180 at 30speed
Rule -
Attribute self.position.X= -512
then change attribute self.position.X to self.position.X+1280
Water2 actor which is placed to the right and next to Water1 is -
Attibute self.position.X=512
then change attribute self.position.X to self.position.X+1280
If i just use 1 actor at the 1024x768 and enable Wrap X... then when i play the game
there is a tear/space between the wrapped part like about 10-20 pixels.
any help would be great..
thanks
Storm
Trying to get get a simple scrolling background to work for the iPad.
Been trying a few of the solutions i've found in the forums, but i think i'm just not getting the
right positioning numbers down.
First do you enable or disable wrap-X for the scene?
This is what i'm trying..
Scene is 2048x768, Camera stays just in 1024x768 2 Actors - Water1 and Water2
Same rules for both except position x number
Move 180 at 30speed
Rule -
Attribute self.position.X= -512
then change attribute self.position.X to self.position.X+1280
Water2 actor which is placed to the right and next to Water1 is -
Attibute self.position.X=512
then change attribute self.position.X to self.position.X+1280
If i just use 1 actor at the 1024x768 and enable Wrap X... then when i play the game
there is a tear/space between the wrapped part like about 10-20 pixels.
any help would be great..
thanks
Storm
Comments
Hope that helps
Thanks for the response -- didn't quite follow what you were saying exactly.
I did finally come up with a solution..
uploaded the project file as well...
http://gamesalad.com/game/play/83504
Thanks again,
Storm