We are trying to spawn a sprite with the same distance in x, but random on y. Just like Flappy Bird. We've built an parallax so this behavior has to be infinite.
Develop games in your browser. Powerful, performant & highly capable.
create (sprite) at 640,random(480) ?
for example