I’ve been playing around with Flash 8 and am working on making a game. Anyway I’ll keep posting the source here. Right now I’m using ripped zelda sprites but they’ll change once I get time to draw some sprites.
You can see it here:
http://www.smoothhabitat.com/eco/spritescroll3/spritetest.html
The source is here:
http://www.smoothhabitat.com/eco/spritescroll3/source.zip
Use the arrow keys to scroll. Hold down SHIFT to go fast. It’s not perfect yet (note the sprites being erased to soon at the bottom), but it’s coming.
There are 3 different layers: ground, object, and cloud. The ground and cloud layers get drawn entirely right away. The object layer, which will be changing and will have collision detection is drawn only when it is appears on the screen. In the classic blit-double-buffer style,they’re all blitted together off-screen and then copied onto the screen bitmap.
Feel free to use it for non-commercial and non-governmental use.