Endless Runner "Sequences"?
MeaningfulGames
Member, PRO Posts: 171
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
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
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)
It's not exactly what you're looking for, but could give you insight about types of automated level building.
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!
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.
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
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.