PDA

View Full Version : Visual Basic Side Scroller


Trazz
Dec 14, 2004, 04:16 PM
Hey, I'm trying to make a visual basic side scroller but I'm not really sure how to do it. I have my ideas, I judt dont know how to make them work. I have all of the animations I need. Can anyone help me out?

Odin
Dec 14, 2004, 06:01 PM
MMF plz.

http://www.clickteam.com/

Monolith
Dec 14, 2004, 08:39 PM
Lets start with the graphics engine. You already have your art assets? Good. Now you need to be able to draw those graphics in your VB application. Unfortunately, this can be a lot tricker than it sounds. The basic Windows drawing functions don't work too well if you're trying to make something with fast moving graphics. If you are, you'll probably want to use DirectX. I really don't know about using DirectX in VB, but I'm sure you're able to.

Torkell
Dec 15, 2004, 01:11 AM
Lets start with the graphics engine. You already have your art assets? Good. Now you need to be able to draw those graphics in your VB application. Unfortunately, this can be a lot tricker than it sounds. The basic Windows drawing functions don't work too well if you're trying to make something with fast moving graphics. If you are, you'll probably want to use DirectX. I really don't know about using DirectX in VB, but I'm sure you're able to.
DirectX 7 and 8 can be used in VB. If you're doing a side-scroller I'd recommend DirectX7 as I don't think 8 includes DirectDraw anymore. It's rather easy to code it, as you include the type library and it then appears as a whole bunch of objects to play with. All you do is give it somewhere to draw (a PictureBox or Form does nicely, but anything with a hWnd will do), and tell it what to draw. The SDK has plenty of examples of using DirectDraw (the Space Shooter project will be worth a look as it has a similar type of engine).

Trazz
Dec 16, 2004, 05:42 PM
Aww you guys I'm a real n00b at this. LOL How exactly do I do all of that?

Odin
Dec 16, 2004, 05:48 PM
Aww you guys I'm a real n00b at this. LOL How exactly do I do all of that?
<filla>
MMF plz.

http://www.clickteam.com/

Trazz
Dec 16, 2004, 05:59 PM
Does it do it in VB code?

Monolith
Dec 16, 2004, 10:15 PM
You can use MSDN for reference on DirectDraw7 and VB:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7/directdraw7/ddover_7dx3.asp

You can also search the internet using keywords such as:
directdraw visual basic intruduction tutorial

Slaz
Dec 25, 2004, 12:16 PM
http://www.gamemaker.nl

I should start with this program before you start with a real language, and anyway, GameMaker has a very nice language build into the program. ;-)