endless runner platform overlapping with previous platform

Hi everyone!

im currently making a new endless runner game. so far i got the background to scroll flawlessly (no pixel gaps)

and now im working with the platforms. i have made them the size of 320x320, so far i have 6 of those, i have changed their motion linear to -10 and make a move rule for the speed, and direction of 180, but they seem to overlap each other badly, so bad that one platform will completly overlap another its as though they dont know what order they are meant to scroll in..... i cant figure out why??

any help would be greatly appreciated.

im trying the method where the platforms move towards the actor so it looks like he or she is running.

Comments

  • CybertouchCybertouch Member, PRO Posts: 31
    also, i should mention the size is 520 x320, landscape and for android on a windows pc.l
  • CybertouchCybertouch Member, PRO Posts: 31
    can anybody help? Id be sooo greatful! =)
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I've recently posted an endless runner tutorial if you want to check it out, maybe it will help.

    http://www.jamie-cross.net/?portfolio=gamesalad-endless-runner-overview
  • CybertouchCybertouch Member, PRO Posts: 31
    thanks Jamie! (im using your template for this game btw!! ) ill go check it out now!
    =)
  • CybertouchCybertouch Member, PRO Posts: 31
    okay... looking at the tut now Jamie ( I deleted your platform because i wanted to create my own, with its own style and rules.... if that makes sense)

    the difference with my platform, is that it starts, already on the screen, so my little character has something to run on, im willing to send you my game if its easier??
  • CybertouchCybertouch Member, PRO Posts: 31
    i just made it one HUGE long platform (instead of seperate pieces) to see it that helped.... it didnt..... very fustrating!
  • CybertouchCybertouch Member, PRO Posts: 31
    okays... update!! (with some good news) i didnt change the new size i imported for the platform (which is now 2280) and i have 2 new rules if self.postion.x <= -520
    change attribute self.position.x to 2880
    this works!! BUT the platform cuts off before the end of the graphic has scrolled across, but it continues again from the beginning... does this mean that gamesalad wont accept an image this width? (2880) or am i missing something??

    ps.. Jamie, youve been so helpful btw!! always love your support. !
  • CybertouchCybertouch Member, PRO Posts: 31
    okay... new update, ive been trying to work this out... i have made it now scroll the whole way through.. (it turns out i didnt adjust the "size" of the actor when i reimported its new size.... but there is still a big gap between the end of the scroll and the beginning of it again..... any suggestions??
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    You need to determine what the offset should be for your platform size and spawn the new platform at that location.

    For example if you have a platform that is re-spawning itself and that platform is 100 pixels wide. In your spawn behavior you'd need to spawn the next platform 100 pixels to the right from the current platforms location. There would be no gap in this case.

    If you wanted a 50 pixel gap between platforms you would spawn the next platform 150 pixels from the current platforms location, and so on.

    Hope that makes sense.
  • CybertouchCybertouch Member, PRO Posts: 31
    hmmm... very good advice Jamie, ill try to make that work for me (ill be back here if i cant work it out for more help) and once again, thanks for helping me, you rock bro =D
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    If you need it, a sample file is attached using this concept. Check the Platform actor spawning behavior to check it out.
  • CybertouchCybertouch Member, PRO Posts: 31
    omg Jamie... thankyou sooooo much! ive downloaded it and checked it out.... its probably going to be exactly what i need.... did i mention you rock????

    Your help is truly appreciated.... I cant thank you enough man!

    here is a sneak peak preview piccy of what your helping me with =D
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Great, I'm glad it helped. You're artwork looks great, I look forward to seeing your game in action!
  • CybertouchCybertouch Member, PRO Posts: 31
    Jamie.... i still cant make it work... i copied all your rules ect, but its still not acting right... do you think you can possibly take a look at it? I would be so greatful!

    btw. your notes and how you named everything was a HUGE help to me, since im a very "laymen's" type of person....
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Sure, you can send the file to jamie -at- jamie-cross.net.
  • CybertouchCybertouch Member, PRO Posts: 31
    thankyou Jamie...ill send it now.. your the best!
  • CybertouchCybertouch Member, PRO Posts: 31
    just checking to make sure you received it?
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    It's received. :)

    It's late here tonight, I'll look at it in the AM tomorrow.
  • CybertouchCybertouch Member, PRO Posts: 31
    no worries Jamie :) looking forward to your reply
  • CybertouchCybertouch Member, PRO Posts: 31
    Hey Jamie, as we are 2 in Cybertouch -Andrew & Kitty.

    -Andrew stumbled upon a problem with his space shooter.

    Situation is fairly easy to describe;
    -Gun-bottom, Moving enemies above.
    -Player controls crosshairs to aim and shoot the moving enemies.

    -Enemies are set to "Collide" when ALL of this happens -If Collide/overlap with shot, + Collide/overlap with crosshairs. Destroy this Actor

    The enemies however does not get destroyed or react what so ever :(

    As always your help is VERY much appreciated.
    :)
  • CybertouchCybertouch Member, PRO Posts: 31
    Solved it !!

    -It seems Changing size of a character while in gameplay "Breaks" the collision function unless you resize width & height with a timer to get the effect desired...

    Well all good and thanks anyway !! :)
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Glad you got it solved.

    I believe if you are using Interpolate that breaks collisions.
Sign In or Register to comment.