Quote: "
1. How do I get it to move to the landscape when I press the button.
2. How do I create a landscape that my sprite will be able to walk on. and
3. How do I create a sprite. Thats a lot for one person to explain so only tell me the bits you want"
I will need a little more specific information, escpecially what type of 2d fighter you are looking to create, in order to help you & not spend undo time explaining mehtods that you are not planning to use.
Reason:
1. The Landscape: You have a couple of choices here, Depending on what type of 2d Fighter you are trying to accomplish.
A>Using large bitmaps (possibly scrolling).
B>Using Panels.
C>Using Tiles.
For any of these methods you can add multiple bitmaps (usually with transparency) to scroll at different speeds to give a parallax scrolling effect. And sometimes, you can combine these methods. It really depends on what type of 2d Fighter you are looking to create. Scrolling levels like Altered Beast, Streets of Rage, & Double Dragon or Single Screen Backdrop 2d Fighter like Street Fighter, And Mortal Kombat.
Let me know and I'll try to provide the information that will help you.
2.
This will depend on which method above you are using. But for methods A & B you normally just set up a rectangle area tha limits how far the caharacter can walk, making sure to keep the sprite on the floor. You can also Use a logical grid (a 2d array that contains information for coordinates on the screen that are accesible).
3.
This answere depends on the how one interpets the question. There are two seperate creation processes.
One is actually drawing the sprite and animation frames in a 2D paint program, file formats and saving, and then placing each frame of animation in a sprite sheet.
The other creation process is in DB itself. Cutting up the Sprite sheet into seperate images and storing each fram as an image number. and then setting the Sprite properties such as priority, backsave etc.. - and then finally displaying the sprite, and updating the animation frames to coincide with player input.
Which one are you asking about?
By the way, There is a Parallax scrolling Demo Based on Shadow of the Beast somewhere around here. It used to be on the DBC home page, though I'm not sure if it has been moved, and where to. I'll try to dig it up.
Ok I found it on one of the international sites (?????)
http://www.darkbasicpro.com.br/shadowbeast.asp
Written in part by our good friend Richard Davey