I've seen an example or 2 but not quite what I am looking for on this. I am trying to give the illusion of falling down a hole for a bonus level, and you have to control the falling character to go around objects and pick up items (think of Dead Pixel if anyone remembers that game from a year ago). I want the level to go endlessly, or at least until conditions are met.
I want platforms and items to random spawn from off screen at the bottom and then move to the top where they will be destroyed when they exit the play area. The player will be moving only left and right as they "fall" towards the objects. This way the level can appears to be scrolling infinitely. But lets say I have 4 powers up and 3 different "collision" objects. How can I randomly choose one (or more) of the 7 items to spawn at the bottom off screen in various positions along the X axis, and then move them upwards (I assume I use a path for the movement). Eventually I will deal with timers and randomizing the % of the time a good object appears versus a bad one but right now I just want to get an example of randomizing the item and spawn point.
Cheers!