if spacekey()=1 then scale bob 1,200
if spacekey()=0 then scale bob 1,100
What's this part doing? Why is is being used all the time?
It would be slow whatever it is.
How big is the image that you are pasting as a background?
I use copy Bitmap instead of Paste Image. You make a new bitmap, and you copy bitmap 1 to bitmap 0. The copy Bitmap has an x/y offset. By increasing or decreasing the x start/end you create a scroll effect. Better still, you could use textured plains intead, and go for 2D in 3D by moving the camera, that is much faster. Although for parallax you will have to move some plains as well.