Endless Runner issue

3absh3absh Member Posts: 601
edited May 2015 in Working with GS (Mac)

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

  • SummationSummation Member, PRO Posts: 476

    @abuabed84 What are you changing the new position to in your change attribute?

  • 3absh3absh Member Posts: 601

    @Summation said:
    abuabed84 What are you changing the new position to in your change attribute?

    self.Position.X+2*self.Size.Width

  • SummationSummation Member, PRO Posts: 476

    @abuabed84 said:
    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?

  • 3absh3absh Member Posts: 601

    @Summation said:
    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.

  • SummationSummation Member, PRO Posts: 476

    @abuabed84 said:
    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?

  • 3absh3absh Member Posts: 601

    @Summation said:
    Are you doing this endless runner with two images, or only one?

    it's 2 ground images

  • 3absh3absh Member Posts: 601

    Although I can't even move the second image, it's on the edge. Is there any way I can make the view bigger?

  • SummationSummation Member, PRO Posts: 476

    @abuabed84 said:
    it's 2 ground images

    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:

  • 3absh3absh Member Posts: 601

    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

  • 3absh3absh Member Posts: 601

    this is the template i'm using

  • 3absh3absh Member Posts: 601

    @Summation said:
    Are you doing this endless runner with two images, or only one?

    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 :(

Sign In or Register to comment.