Endless Runner "Sequences"?

MeaningfulGamesMeaningfulGames Member, PRO Posts: 171
edited August 2012 in Working with GS (Mac)
Hi GameSalad community,
I'm planning on making a GameSalad game which is like an endless runner, but it is slightly different to all the templates out there.
With this game I'd like it to have 10-20 "sequences" in which the character goes through, and when one sequence has been finished, another "sequence" is selected to be played at random. These sequences will involve different placements of platforms and obstacles.
This way I can make the game random without hogging too much memory randomising actor placements or looping a particular scene again and again.

Can anyone give any insight as to how I can achieve this?
Thanks,
Vincam

Comments

  • rhinokeyrhinokey Member Posts: 158
    the runner game i'm doing is nearing completeion and i have all teh platforms randomized and monsters, and it gets 60 or above fps and memory usage still is not bad, and its done completely with random platforms.

    i did it by chain spawning my actors so the length of the platforms are completely random, and the heights are random (between 5 selected heights)
  • ericzingelerericzingeler Member Posts: 334
    edited August 2012
    Check this out: http://pcg.wikidot.com

    It's not exactly what you're looking for, but could give you insight about types of automated level building.
  • BSideGamesBSideGames Member Posts: 392
    I would build all of the sequences off screen. Then have each one move into the camera view or out of camera view based off of a random number in a attribute then just have a trigger somewhere in each sequence to change number
  • MeaningfulGamesMeaningfulGames Member, PRO Posts: 171
    @rhinokey

    Wow! That looks great. I see maplestory mushrooms, LOL

    So did you have a single ground "tile" which you chose to be randomised in terms of height and length? How do you make sure it doesn't accidentally spawn tiles which does not have a possible solution to the way you should jump through them (two very short tiles that are extremely variated in height.

    @BSideGames

    That sounds logical, would there be any cuts when the camera switches to a different area of the scene? Also how would you combat things like jumping too high would cause you to have sight of a different sequence?

    Thank you guys so much!
  • BSideGamesBSideGames Member Posts: 392
    @Vincam

    You would be moving all the parts of the sequence to the camera email me at bsidegames@gmail.com and I will work up a quick demo for you to look at.
  • rhinokeyrhinokey Member Posts: 158
    @vincam besides my blue starter platform i have 3 platform types, a 128 wide left a 256 middle, and a 128 right side,
    the left is placed in the scene outside the camera on the right side. with a lin motion making it move left, when it gets close to entering the camera space it does a random role to decide if it spawns a middle section or a right section. i think i have it set so like 90% of the time it will spawn a middle, the middle has a 75% chance of spawning another middle after it
    and that middle has a 75% chance of spawning another middle
    eventually it will spawn a right side which will end that platform, theres a random distance set that the right piece will move into the scene, before spawning another left segment off screen at a randomly selected height

    and the process starts over.

    each invisible platform segment has a art piece it spawns and it selects the art from a list of platform art (in the vid i only have one type of platform art.

    also each invisible platform does a random roll to see if it spawns, monsters, power ups, coins, obstacles

    it took me a while to get it all sorted but so far its working great
  • rhinokeyrhinokey Member Posts: 158
    oh and to answer your last question, i have i think 5 possible height lanes, they can spawn, and i basically say when picking the next lane if on lane one only randomly pick from 1,2 and 3, since 4 and 5 is too high to jump to
    if currently at lane 2 only pick from 1,2,3,4, since 5 is the only one you can't jump to from 2,

    lanes 3,4 and 5 can spawn any lane to follow it.
  • bardbard Member Posts: 2
    this is looking really great rhinokey. can't wait till you release the template!
Sign In or Register to comment.