return z + ((height>32) ? 31 : 0)
and add this above it:if self == $game_player
return z + 32
end
&& self.direction == 2
to the if rule, if you did want to make it directional, but it looks best always in front. def screen_z(height = 0)
return 999 if @always_on_top
z = (@real_y - self.map.display_y + 3) / 4 + 32
if @tile_id>0
return z + self.map.priorities[@tile_id] * 32
end
if self==$game_player
return z + 32 if @direction==2
end
# Add z if height exceeds 32
return z + ((height>32) ? 31 : 0)
end