Random platform generation

i’m currently trying to make a platform game and i’m trying to have platforms come down from the top at random positions, anybody have any idea how to accomplish this ?

i tried using attachMovieClip(); and duplicateMovieClip(); and such but i’m stuck at the randomly dropping down bit i’m afraid :S

bump?

this should get you started.

–Patrick

thanks, i built something similair during college but i just can’t get it right
www.dreamone.nl/platforms.zip

i generates the platforms but then goes into the generation part again and removes the duplicated platforms

yes code is messy and doesn’t make sense but i was just messing around.
doesn’t really have the feel off a platform game does it ?