scrolling a form

12-20-2001, 03:13 AM
Can anyone point me in the direction for side scrolling a graphic form like the old Mario bros games?But not useing bitblit,or Dx,just with plain old vb
ps:be nice I am new here.

12-20-2001, 04:05 AM
I don't think you can do any side scrolling without BitBlt or DirectX

12-20-2001, 04:07 AM
a simple way would be to put your game inside a picture box and move that left/right, rather than moving all your objects one by one

12-20-2001, 04:10 AM
But this would require one huge bitmap containing the complete level.

12-20-2001, 05:35 AM
I don't see why you don't want to use DirectX or at least BitBlt... however, the VB equivalent of BitBlt is PaintPicture.

12-20-2001, 10:49 AM
ok I will check paintpicture.
thank you

12-20-2001, 12:15 PM
BitBlt may be a pain in the parts but it makes all the difference. Once you have your functions set up i.e. DrawBackground (Location as integer) , you can forget all about BitBlt. Its actually a bit simpler than people make it out to be.

12-20-2001, 07:18 PM
ok I believe that paintpicture is to slow and the graphics dont look very good when it moves.
anyone know where to get a good bitblt tutor??

12-23-2001, 09:03 PM
Well, here is a thought, make a tileset, then, make every tile go along with a number (The top left is 0, then count right...and so forth and so on), then, after that, load the screen onto the game, at which point you have a picture box which is the screen. HOWEVER, you load a couple columns extra to the right and the left, so that it will show those, but then make the screen refresh itself a couple columns out farther after they've accessed the last column. I hope I could help

12-23-2001, 09:05 PM
OH, I forgot something, make the numbers for the tiles for the level go into a notepad, and then load them from there.

01-06-2002, 09:18 AM
i think there are types of image controls that will do it for you, but you can just use the scroll bar position for moving the pic. however, you gotta use blt, unless of course you want to use point and pset (which will take about 5 minutes to refresh).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum