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.

Coding > tilemap collisions?

#4240 - sketcher - Tue Mar 25, 2003 7:55 am

When you create your tilemaps, how do you do you do collisions with platforms and the like?
_________________
"Oh yeah, so what kind of warrior are you? A code warrior? HAHAHA!"

#4241 - tepples - Tue Mar 25, 2003 8:30 am

sketcher wrote:
When you create your tilemaps, how do you do you do collisions with platforms and the like?

To learn how to implement a basic platform game, look at Lord Graga's platformer source code.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#4336 - sketcher - Fri Mar 28, 2003 4:19 pm

tepples,
Thanks for the reply. Unfortunately that is not what I was looking for. My question was pretty vague, sorry. What I mean is are there any tools available that can load maps and easily add in collision data. I prefer not to have to hand create my collision maps.
_________________
"Oh yeah, so what kind of warrior are you? A code warrior? HAHAHA!"

#4338 - tepples - Fri Mar 28, 2003 4:55 pm

In real games, the engine creates the collision map based on the background map. Each tile number is marked as "air" or "solid" or "water" or something in a lookup table, and the engine constructs each entry of the collision map by looking up each entry of the background map in the lookup table.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#4401 - sketcher - Sun Mar 30, 2003 12:29 am

Again, I know how collisions are done. I have written tile based games before on the PC. My question is are there any EXISTING TOOLS that I can create my maps with that will load tiles that have collision data stored with them and will write this data out to a file for me. The bottom line is that I'm trying to save myself the time of writing my own map/tile editor by finding some freeware one that someone else has written.

So far I have not found any map editors that load anything except .bmp or .gif files as the tileset and create the maps from these.
_________________
"Oh yeah, so what kind of warrior are you? A code warrior? HAHAHA!"

#4405 - niltsair - Sun Mar 30, 2003 1:07 am

Here's a tool that's handy ....
http://www.cs.kun.nl/is/ts/

It allows you to create maps and give a value for each tile.

It's a generic tool, you can write a export file in order to get the data as you would like.

Doesn't support HFlip or VFlip.

Since version 2.2 is buggy, only use it to export, create and save with version 2.1