03-15-2005, 10:56 PM
it still wont work what should i do :???:
whats wrong with this code??
|
03-15-2005, 10:56 PM
it still wont work what should i do :???:
03-16-2005, 03:33 AM
Complete this checklist for me, as it will help:
[ ]1. Is the BMP exactly 320x200? [ ]2. Is the 16x16 grass texture in the BMP in the TOP-LEFT corner? [ ]3. Can't think of any more.. So?
03-16-2005, 09:30 AM
1.) check
2.) check
03-16-2005, 11:24 PM
[syntax="qbasic"]
LoadBMP &HA000, 319, 199, "grass.bmp", 0, 0, 1, -1 GET (0, 0)-(15, 15), grass CLS[/syntax] Have you tried this?
03-17-2005, 12:34 AM
k it sorta worked but the grass tile has a pixel size of white above it or below it.
Code: 'Load the BMP whats wrong now
03-17-2005, 03:28 AM
Alright, time for some good old debuging...
You know where you got the CLS? Just befor that type: SLEEP Just for awile to see what the loaded photo looks like.. got all that? It acts as a keypress wait, so after you press a key your code will continue, try it.. :wink: .. It may give you valiable feed back.
03-17-2005, 07:04 AM
ah ok little screw up on the size of the picture now it works awsome thanks a ton. um as for loading other images do i have to add a whole nother bmp loader to load say a wall? or how else do it do it.
03-17-2005, 08:10 AM
Just make all the tiles in one BMP, then GET each separet one. That will be the easiest way to do it.
But if you want separet BMPs,. you only need to put.. [syntax="qbasic"]LoadBMP &HA000, 320, 200, "grass.bmp", 0, 0, 1, -1 GET (0, 0)-(15, 15), grass CLS LoadBMP &HA000, 320, 200, "wall.bmp", 0, 0, 1, -1 GET (0, 0)-(15, 15), wall CLS [/syntax] No need to make another BMP loader, you can use the same one.. ^ See, its variables are set before it runs to what you want... its almost like a PRINT command, you don't need 2 QB IDEs to make 2 PRINT statments aye? :wink: |
« Next Oldest | Next Newest »
|