Spawn Random Obstacles in Endless Runner
Hey Everyone,
I am new to gamesalad and mobile dev. I am loving gamesalad and reading through the forums to try to learn as much as possible.
I was able to create a ground platform that moves and recycles, but now I want to add some obstacles. My goal is to create about 50 "scenarios" that randomly spawn one after another. For Example a lake with plateforms over it, ground with boulders to jump over, etc.... The Scenarios need to be made up of different actors some that if the player runs into he dies, while others allow him to jump on. So my question is how do I link actors together to form a scenario and then randomly spawn the scenario.
Any help would be appreciated, I tried looking on forum but wasn't really sure what to look for.
Thanks
Brent
I am new to gamesalad and mobile dev. I am loving gamesalad and reading through the forums to try to learn as much as possible.
I was able to create a ground platform that moves and recycles, but now I want to add some obstacles. My goal is to create about 50 "scenarios" that randomly spawn one after another. For Example a lake with plateforms over it, ground with boulders to jump over, etc.... The Scenarios need to be made up of different actors some that if the player runs into he dies, while others allow him to jump on. So my question is how do I link actors together to form a scenario and then randomly spawn the scenario.
Any help would be appreciated, I tried looking on forum but wasn't really sure what to look for.
Thanks
Brent
Comments
I have created 10 sequences off screen and am in need of guidance or a tutorial that can teach me how to set up the sequences to come into camera view and set up random numbers and triggers to get my game to appear endless.
I'd appreciate any help
You say that you want the scenarios to spawn randomly. As a point of clarification, are the scenarios themselves random? That is, the lake scenario... is it always the same as far as platform size and location are concerned, or are those things randomized each time?
If they are the same, you can use a table to predetermine the sizes and locations and populate the scenarios based on that data. You can also use a table to hold possible values and then spawn them randomly but that will depend a bit on your answer to my question.
http://forums.gamesalad.com/discussion/60848/timolapre1998-s-free-template-extravaganza#latest
Thanks for the warm welcome. To answer your question, the scenarios are always the same, later I might want to vary enemies and "coins" etc. But, the platform placement will always be the same for the given scenario. I want to have enough of them that it is still engaging and difficult.
Since all scenarios are in the same scene, how do I go about labeling a given scenario (between point A and
Also, do you know any good tutorials, templates that I could look at to learn from?
Thanks
You'll need to come up with a system that uses tables to populate the scenes, so also look for tables demos and videos. There's also a Spare Code thread with great demos available.
I might have a demo that uses similar concepts and I'll see if I can dig it up for you.
So, I put all my actors on screen and built each scenario or sequence and mapped out the x and y points and entered them into corresponding tables. The demo includes a trigger in the form of a button. When I press button each scenario pops up. Obviously this is not what I want but I am unsure on how to get the scenarios to move to the left to give the endless runner look. Also, how would I set up a trigger system to make the seamless transition from one sequence to the next random sequence.
Any help would be awesome
Tables, however, I understand extremely well. I made these other two (included in the .zip file) a while back but they demonstrated how to pull table information in order to place actors on a scene (not randomly).
I'm not sure about triggers... I'd have to think more about that. Others here will undoubtedly have more to say.
Depending on how your scene is set up . . . I would just spawn your elements and have them move through the scene . . . . . . like in tatiang's demo above.
The two main problems I'm having is that If an actor is on screen and I call next sequence it disappears off screen to go to plotted location if that actor is in both sequences. How would I fix this. Also, how could I get next sequence to spawn without a next level button.
Thanks for help.
It seems like it shouldn't be too difficult but I am new to this so I'm tearing my hear out trying to figure it out, but also having a great time!
Thanks
http://www.jamie-cross.net/?portfolio=gamesalad-endless-runner-overview
Thanks
After you get done with one cycle, you can have the last platform in that cycle spawn the first platform of the new cycle and so on...
Thanks again