Press space bar or click to generate terrain ------------------------------------------------------------------------- This project creates a new cave terrain upon pressing the green flag button and/or pressing the space key or by clicking. If you want to use this in any of your projects, feel free to put the sprite in your backpack. To call the terrain generation scripts, simply broadcast event "NewCaveTerrain" and set the three variables to whatever you desire.
I borrowed the box borders from geometry dash.