Ok, I can create sprites and animate them no problems, and I can get a bitmap background to the screen no problem. I can scroll a background round and round, using copy bitmap, but I'm having a lot of trouble getting my head around how to create an entire level of a 2D scrolling game, like say Double Dragon. So far I've been going about achieving this by thinking that each 'screen' will be a bitmap, and as the user moves along to a point where the screen needs to scroll, I copy sections of 2 bitmaps to the screen in a loop like this:
(Both bitmaps are 800x600 backdrops)
ScrollAmt = 1
COPY BITMAP 1, ScrollAmt, 0, 800-ScrollAmt, 600 - TO SAME POSITION
ON THE SCREEN
COPY BITMAP 2, 0, 0, ScrollAmt,600 - TO SAME POSITION ON THE SCREEN
So essentially the screen becomes an amalgamation of 2 bitmaps and gives the illusion of a 'complete' backdrop scrolling along behind.
At the moment I have 5 backdrop screens which all need to scroll seemlessly into eachother as the character moves. But I'm really not sure this is the best way to do it. Should I use Bitmaps, Images ot Sprites for this work?
For starters, I want my character to be allowed to move back and forth along the entire level, and as you're only allowed 31 bitmaps it means that any level is not gonna be that big. Secondly, I need some AI in the game where cpu contolled characters do their own thing at any position along the whole level. So they will randomly receive instructions to go hang out at a particular place along the level, which may or may not be in view of the human character. How will I achieve that their positioning when they are doing something that is not on screen? Should I give the cpu controlled sprites a pseudo screen position in relation to the amount the screen has to scroll before they come into view or something?
Is there some way I can amalgamate all of the background graphics into as single long backdrop rather than doing all the cutting and pasting of stuff? I've tried to create a bitmap and copy all my bitmaps onto it. (e.g in the case of my 5 backdrops, I create a bitmap of 4800x600) but DB just crashes!
Any help on any of these problems would be hugely appreciated!