Parallax scrolling issues with iPad
Hello all,
I have a little problem with my backgrounds scrolling in my iPad game. The iPad version of my game will only spawn a new background actor (that is constantly moving left) once the first background actor's last pixel reaches the halfway mark of the screen, yet I made the rule that states that "when attribute: self.position.x < -1 then spawn actor :self.position.x+1024" (Of course the background image is 1024).
I know that I have not wrote down all of the rule, but I know that it is right because my iPhone game works perfectly. All I did to make the iPad game was to resize images and redo rules to match those changes.
Is there a bug in the iPad preview part of gamesalad? Any help would surely be appreciated.
Thanks,
Poopdecksweeper
I have a little problem with my backgrounds scrolling in my iPad game. The iPad version of my game will only spawn a new background actor (that is constantly moving left) once the first background actor's last pixel reaches the halfway mark of the screen, yet I made the rule that states that "when attribute: self.position.x < -1 then spawn actor :self.position.x+1024" (Of course the background image is 1024).
I know that I have not wrote down all of the rule, but I know that it is right because my iPhone game works perfectly. All I did to make the iPad game was to resize images and redo rules to match those changes.
Is there a bug in the iPad preview part of gamesalad? Any help would surely be appreciated.
Thanks,
Poopdecksweeper
Comments
you meed to have it trigger when the actor x<512 and spawn the new one at something like X=1532 though that will destroy your games performance and you should look into recycling or using wrap x on the scene.
Cheers
Also, Tynan, I destroy the actor once it has moved past where you can see it. So at like 1024 I destroy.
Something else is wrong in your code if thats the case.