tilemap collision help

BlitzPlus Forums/BlitzPlus Programming/tilemap collision help

Ross C(Posted 2003) [#1]
i'm making up a tilemap level for my space game( when you reach a space station). i've got the tiles in and stuff but when it comes to collision, my engine works out collisions depending on whether or not your overlapping onto a nowalkable tile.

But a couple of tile are half floor and half wall

#=floor @=wall
where 2x2 characters = 1 tile

##
## =1 tile

@@@@@@@@
@@@@##@@
########
########


any ideas as how to go about this?


cbmeeks(Posted 2003) [#2]
What I do is set up 4 "quadrants" for each tile.


Type Tile
  Field UL,UR
  Field LL,LR
End Type



That way, one tile can be broken up into 4 sections.

-cb


Ross C(Posted 2003) [#3]
thanks for that! i've been kinda stumped on that :D