GLBasic forum

Main forum => GLBasic - en => Topic started by: daioz on 2010-Nov-05

Title: Simple Platform Game Help
Post by: daioz on 2010-Nov-05
Firstly apologies if this has already been covered I did do a search and found nothing.
Secondly apologies for my noobness this is my 3rd day in the GLBasic world I have a limited knowledge of Java but nothing in c++ etc.

Ok to the question lol, Im making or trying to make a simple platform game, So far i have been able to draw and animate my main character and enable them to walk left right etc and jump.
Now I need to put in the platforms(levels) and have no idea how to do this??? I have followed PeeJays tutorials which were brilliant by the way! and can load backgrounds etc but can't find this in any online tutorial.

Help Please :)
Title: Re: Simple Platform Game Help
Post by: matchy on 2010-Nov-05
Hello. The easiest way to make tiled levels is:
http://www.glbasic.com/forum/index.php?topic=1633.0
Title: Re: Simple Platform Game Help
Post by: Ian Price on 2010-Nov-05
MrTAToad did a great set of platform tutorials.

They are available from his website - http://www.un-map.com/code.html

Look for JNR Platform Examples - He states that you need GLBasic V8.XX

Hope you find them useful.

Good luck, and welcome, btw :)
Title: Re: Simple Platform Game Help
Post by: MrTAToad on 2010-Nov-05
They are also in the Showroom section as well!
Title: Re: Simple Platform Game Help
Post by: Ian Price on 2010-Nov-05
Quote from: MrTAToad on 2010-Nov-05
They are also in the Showroom section as well!

I can't remember the last time I actually looked in the showroom tbh - I forget it's even here.
Title: Re: Simple Platform Game Help
Post by: MrTAToad on 2010-Nov-05
Hmm - sounds like Gernot should be promoting that area more!
Title: Re: Simple Platform Game Help
Post by: daioz on 2010-Nov-05
Hi guys thanks for the advice, MrTAToad I downloaded your example file JNRExample#1 but what did you use to create the .map file as it will not open in mapwin at all neither will the tile bmp files??
Apologies if I'm being stupid but I've been trying for 3 hours  :rant: lol
Thanks for all your help so far guys  =D
Title: Re: Simple Platform Game Help
Post by: MrTAToad on 2010-Nov-06
I didn't create it - the original author did.

Its a simple binary format - 1st byte is a flag to denote whether the tile should be displayed or not, and then 4 bytes denote the index into the sprite array.

Title: Re: Simple Platform Game Help
Post by: daioz on 2010-Nov-09
For some reason I can't use the JNR example script to load any maps other than the one that is included in the example file and I can't edit this map in mapwin when loading a custom map its produces error: Out of DIM array.
Are there any other examples of platform games with multiple levels available off any members here?
I have trawled google and the forum but no luck yet.

Thanks for your patience  :)
Title: Re: Simple Platform Game Help
Post by: Ian Price on 2010-Nov-09
Have you tried Mappy to load in the map file? That seems to be a pretty good map editor, and I know at least two forumites created a Mappy loader for GLB - maybe the JNR tuts. use the Mappy format.