Walkable area problems

Started by , Fri 20/02/2004 03:13:34

Previous topic - Next topic

Ytterbium In Costa Rica

My game uses a top-down perspective, and this seems to cause some problems with walkable areas. My character seems to clip through non-walkable areas when he´s near them, and <i´d rather this not happen. I think it´s because the engine uses the character´s coordinates rather than where the sprite is to determine whether they´re on a walkable area. Is there a way to correct this?

Please excuse my typos, <i´m using a weird Spanish keyboard.

James Kay

The walkable area defines the space where the middle pixel on the bottom of your sprite can move.
Just check how wide your sprite is and crop the walkable areas by half of that (ie. make the walkable area smaller).

SMF spam blocked by CleanTalk