So I want to make a random line, that always goes up (never goes down again). If you have any idea how I can simply do that, that would be nice. I want my sprite to always stay ontop of that line if he falls off; its game over.
I decided to spawn my sprite everyime my previous sprite.Y was equal to 0 and then do that over and over again so it would eventually be an infinite random line, also everytime it spawned the line would turn a little around it axis, so to keep the line "not straight". The "line" is actually a rounded rectangle and I'm trying to create the illusion so that when they spawn on eachother it looks like a straight line.
My problem is everyway I try this, the line stops after 1 spawn or never spawns at all.
I included a sketch, to try and make this clearer, I hope you can read my handwriting <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">
(if you have problems viewing the picture try this link then: http://imgur.com/s0nHDfe )