Problem Wrapping X White Space
bkhoward2001
Member, PRO Posts: 86
I guess I just don't get this Wrap X stuff.... I have a scene that is 1800 wide, I have a background image that is 1800 wide. I have the scene set for wrap x. I would think that would flow correctly; however, every couple of seconds, you get a white area appear on the left side of the scene..... I thought I would offset this by moving the camera origin to the right with a 100 px value, however, still have white area.... What am I missing here?
I would think that if the background image and the scene size were the same, it should wrap without any glitchy white space. Am I wrong?
Comments
If you double-click the background image actor within the scene (not from the Library), what is the self.Position.X value for it?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
For a 1400x768 scene the position of the background (image actor) is x 700 y 384... here is a simple example file I just made to show...
I've seen white gaps appear at times when I've done the same. I've never tested it fully but I have to wonder if there is periodically math errors in GS that cause that.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Any ideal how to deal with this situation... Seems basic... Can't have white space appearing every few seconds....
Anyone?