This rolling ball uses a list to define the ground. This way, it can move over it very smoothly and also get the slope of it very easily. The sprite that looks like the terrain was actually plotted using the pen onto the stage which was then made into a sprite by taking a snapshot of the stage and importing it into the paint editor. I think this technique has a lot of promise...the approach would be to generate a long list of values to represent the terrain, then plot sections to the stage, turn them into sprites, clean them up in the paint editor and get them moving properly with the Scrollx variable. Update - I added in the ability for the ball to jump off the terrain, if it goes too fast.