Sprite Sizes with Tile sizes

Positioning, pathfinding etc would probably be easier if they were the same size or smaller.
That way a tile is either walkable or not - removes the need to do alot of collision detection just to determine if a route is traversable. Some collision detection will be required to prevent objects moving through the edges of non-passable tiles though.
 
thanks a lot - i made my tiles 30x30 and it works!
i stored all my tiles into a boolean array (Passable[me.width/30,me.height/30]
and set them to true/false depending on whether they were walkable or not

thanks
 
Back
Top