gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > collision map from editor

#9362 - hnager - Sat Aug 02, 2003 10:28 pm

ANy map editors out there that will export a collision map along with the map/tile data? Alternately I could look at the map data and create a collision map on the fly, but in that case I would hope for a way to have the editor define a classification per tile, wall, walkable, water, etc.

THanks!

#9368 - tepples - Sun Aug 03, 2003 12:23 am

Quote:
Alternately I could look at the map data and create a collision map on the fly, but in that case I would hope for a way to have the editor define a classification per tile, wall, walkable, water, etc.

Make sure your map editor won't reorder your tiles behind your back, then use a GBA-side lookup table that states which tiles have what properties.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#9371 - niltsair - Sun Aug 03, 2003 12:28 am

Tile Studio will do all of that. You can assign a collision value for each side of a map entry. Moreever, you can give a special value to each entry in the map, doing what you want with it in your program.

Look it up on google, latest version is on Sourceforge.

#9374 - hnager - Sun Aug 03, 2003 1:39 am

thanks for the replies - out of curiousity - which map editors like to reorder tiles, any why?

#9599 - hnager - Sun Aug 10, 2003 1:06 am

I've tried a bunch of editors - from tUME to Tile Studio. I actually like Tile Studio but would rather the output be formatted as .c vs the asm output.

For now I think I just need something really basic - which editor has the smallest learning curve?

#9617 - niltsair - Sun Aug 10, 2003 11:30 pm

If you're confortable with TileStudio and like it, stay with it ;-)

Just modify the export file to output it in c format. It's quite easy, read the doc how the output format, and modify the already created gba file. I did this myself some time ago with no major hurdle. Just lost the export file :P

#9620 - hnager - Mon Aug 11, 2003 1:09 am

Thanks nilstar - I'll give it a shot - however, if anybody happens to have export scripts for tile studio to a gba friendly .c file I wouldn't turn it down ;)