Passability from directions.

Hi. I'm working on something like this: theres a couch, its two tiles high. the player can walk over the bottom tile, but the top tile is set to pass behind.

However, my sprites, which are taller than 32p, will walk across the couch and this will happen:

[IMG]http://i.imgur.com/DSwVcDN.png[/IMG]

Their head gets cut off.

Basically, I need to make it so that player will only go behind the tile if they are walking on said tile. The player sprite, right now, is on the tile in front of it. Is there a simple solution I'm missing, or maybe a script?
Doesn't the "VXAce_SP1" fix this?  
One way to do it that I know of, which is what I've done for certain things, is with events:

Step 1 = For each tile on that top row, make an event that has two pages. For the graphic, on both pages, choose the tile-piece for their part of the couch. The first page, set to be "Same as Characters" - set the second page as "Above Characters".

Step 2 = Make an event set to "Player Touch", that turns on a switch. Then, in the events made in step 1, set page 2 to activate when the switch has been turned on. Place this "Player Touch" event around the couch-event tiles, only where the player could realistically touch.

Step 3 = Make an event that turns off that switch on player touch, placed around the events that turn it on.
OP here, I actually found a script that works beautifully so far! Putting it here in case anyone with the same problem needs it:

From the lovely DivisionHeaven.

Code:
#==============================================================================# # Бе Moby's Script System - Correct Sprite Display V1.0# -- Last Updated: 2012.06.26# #==============================================================================$imported = {} if $imported.nil?$imported["MSS-Correct_Sprite_Display"] = 1.0#==============================================================================# Бе Updates# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# N/A# #==============================================================================# Бе Introduction# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script corrects how sprites will be displayed, to prevent errors# happening when the sprite is higher than 32px and the tile above it is set# to star passability.# #==============================================================================# Бе Instructions# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# To install this script, open up your script editor and copy/paste this script# to an open slot below Бе Materials/СfН▐ but above Бе Main. Remember to save.# # # If you have any questions, bugs you want to report or anything else,# please contact me at [email hidden] or via my profile on # [URL="http://forums.rpgmakerweb.com"]http://forums.rpgmakerweb.com[/URL] (mobychan).# # # This script is Plug and Play.# It automatically checks if the Sprite is bigger then 32px and adjust the # tiles around that sprite accordingly.# If you're using Anaryu's Particle Engine (ported by Yami) # there won't be any issues.# #==============================================================================# Бе Compatibility# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that# it will run with RPG Maker VX without adjusting.# #==============================================================================# #==============================================================================# Бе Compatibility Issues# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# N/A# #==============================================================================#==============================================================================# ** Spriteset_Map#------------------------------------------------------------------------------#  This class brings together map screen sprites, tilemaps, etc. It's used# within the Scene_Map class.#==============================================================================class Spriteset_Map  #--------------------------------------------------------------------------  # * Update Character Sprite  #--------------------------------------------------------------------------  alias msscsd_update_characters update_characters unless $@  def update_characters    msscsd_update_characters        @character_sprites.each do |curr_sprite|      if curr_sprite.character.class.name == "Game_Event" ||          curr_sprite.character.class.name == "Game_Player" ||          curr_sprite.character.class.name == "Game_Follower"        height = get_height(curr_sprite)                if height > 1          x = curr_sprite.character.x          curr_sprite.viewport = @viewport1                    id = $game_map.data[x, curr_sprite.character.y, 2]          flag_pos = $game_map.tileset.flags[id]                    if (!(flag_pos & 0x10 != 0) || id == 0)            for i in 2..height              y = curr_sprite.character.y - (i - 1)                            if !$game_map.data[x, y, 2].nil?                flag = $game_map.tileset.flags[$game_map.data[x, y, 2]]                                if flag & 0x10 != 0 && # [БЩ]: No effect on passage                    $game_map.data[x, y, 2] != 0                  curr_sprite.viewport = @viewport2                  break                else                  curr_sprite.viewport = @viewport1                end              end            end          end        end      end    end  end  #--------------------------------------------------------------------------  # * Gets the given Sprites height  #--------------------------------------------------------------------------  def get_height(curr_sprite)    height = 0        if curr_sprite.character.character_name.scan(/$/)      height = (curr_sprite.bitmap.height / 4) / 32      height += 1 if (curr_sprite.bitmap.height / 4) % 32 > 0    else      height = (curr_sprite.bitmap.height / 8) / 32      height += 1 if (curr_sprite.bitmap.height / 8) % 32 > 0    end    return height  end  #--------------------------------------------------------------------------  # * Add Particle  #--------------------------------------------------------------------------  def add_particle(target, name, blend, setting, offset, v = nil, a = nil)        particle = Particle.new(@viewport2, target, name, blend, setting, offset, v, a)        @particles.push(particle)  endend
The newest version of the engine already fixes this, I think. Look for the "star passability fix" thread on this forum.

Original thread: https://forums.rpgmakerweb.com/threads/passability-from-directions.40648/