Save-Point
Shadow Removing - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker VX Code (https://www.save-point.org/forum-101.html)
+----- Thread: Shadow Removing (/thread-7053.html)



Shadow Removing - Aintaro - 05-08-2009

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Hey guys I have a script here that will remove shadows like from buildings or objects. I hope you enjoy the script for what ever reasons you man need it. But make sure you put this script above the Main script.

Code:
# Shadow Remover!

class Game_Map
  alias gamebaker_goodbyeshadow_oldsetup setup
  def setup(*args)
    gamebaker_goodbyeshadow_oldsetup(*args)
    goodbye_shadows
  end

  def goodbye_shadows
    for x in 0...$game_map.data.xsize
      for y in 0...$game_map.data.ysize
        if $game_map.data[x,y,0] >= 4352
          $game_map.data[x,y,1] = $game_map.data[x,y,0]
          $game_map.data[x,y,0] = 0
        end
      end
    end
  end
end