Platform game help please I beg
Blitz3D Forums/Blitz3D Beginners Area/Platform game help please I beg
| ||
hiya, all. I just started in blitzBasic. I have BB2D. ok. so far i have learnt a few things like jumping, how to reset gravity after you have jumped. I can move left + right i know about variables, constants. Im ok with types i think. Im useless with arrays. its my first week of BB. if possible can someone explain how to load a map. I just cant seem to understand it. when i look at code of others it kinda makes a little sens but just doesnt click in my head. I see all other code with 1001100110 at the end of it and i think this is the data for where to put the tiles on the screen. but how is this done. if you can help me i will be very happy. |
| ||
For arrays: http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=gamekrylar10192000.html For MAP editor: http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=gameclyde07092002.html Platform help: http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=sss06192003203654.html Can't get it from that, just ask for more help. Kinda hurried right now... |
| ||
If you understand Types then it should be easy. The first thing you need to do is make or find some tiles to use. Also, you need to set up your map using either a tilemap editor, or just by hand. You can do this using Data statements in Blitz. Then you need to load in your tile image, and read each tile from the Data statements into a new type. Then, inside your main loop you need to draw the tile in the correct spot. That's pretty breif, but it's a start. I've also written a little example. You can download it here and see how it works. Hope this helps you out some! |
| ||
thx very much guys for your help with this. I'll let you guys know if I have any problems.. Thx again :) |