Endless Runner issue
Hey guys,
I'm making an endless runner based on a template and I replaced the ground image.
The problem is that there is this gap on the ground that gets wider as the game goes on
How can I fix this?
I have 2 ground images side by side but I can't seem to see the other image the view window is small
Comments
@abuabed84 What are you changing the new position to in your change attribute?
self.Position.X+2*self.Size.Width
And it has the same result even if you use a wider or narrower image for your ground?
It has the same problem even after adjusting it, I'm not even sure if there is an image to the right of the ground image shown. I tried adjusting the length but I could only fix 1 of 2 gaps, the second gap is there no matter what I do.
Are you doing this endless runner with two images, or only one?
it's 2 ground images
Although I can't even move the second image, it's on the edge. Is there any way I can make the view bigger?
Ok cool. I think what's going on with the gaps is that the image size for the ground may not be suited to the screen size you're using (I could be wrong).
@jamie_c has an awesome tutorial on this (are you using his template?) found here:
I found the issue,
the resolution of the template was legacy iPhone landscape and I though it was iPhone 5 resolution.
I'm working to resolve the issue right now
this is the template i'm using
I managed to fix the gap but now i'm facing another issue,
I replaced the purple floor with the dirt floor, but the purple floor keeps coming after the dirt floor