Layer problem--want my character to be behind somtimes and infront others

I am making an iso rpg style game.
The problem is that certain things(like buildings) i want somtimes infront of the character and somtimes behind.
Is there a way of doing this without using a tile based system.