Map Viewer V1
#1
Map Viewer V1
Version: 1

Introduction
This script is very simple, it displays a image preferably your map image and displays it in a window.

Features
  • Displays Map Image
  • Allow for exiting the window with the map
  • Easy script call to execute

Screenshots
No Screenshot.

Demo
No Demo

Script
Code:
#===============================================================================?
#Map Viewer V1
#Author: Mario Thompson (computerwizoo7)
#RPG Maker XP
#===============================================================================?
#Instructions:
#Place your map's image in the picture folder and name it "map.png"
#Note: the image should be 640x480 in size.
#===============================================================================?
#Map Window
#===============================================================================?

class Window_Map < Window_Base
  def initialize
    super(0,0,640,480)
    self.contents = Bitmap.new(width-32,height-32)
    self.contents.font.name = "Arial"
    self.contents.font.size = 24
    refresh
  end
    
  def refresh
    self.contents.clear
    @Map_Image = Sprite.new
    @Map_Image.bitmap = RPG::Cache.picture("Map.png")
    @Map_Image.z = 100
  end
  
  def dispose
    super
    @Map_Image.dispose
  end
end


#===============================================================================?
#Map Scene
#===============================================================================?

class Map_Scene
  
  def main
    @Map = Window_Map.new
    
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        then break
      end
    end
    
    Graphics.freeze
    @Map.dispose
    
  end
  
  def update
    
    @Map.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
    end
  end
  
end

Instructions
Place your map's image in the picture folder and name it "map.png"
Note: the image should be 640x480 in size.

FAQ
None.

Compatibility
Everything.

Credits and Thanks
computerwizoo7 credit also in script.

Author's Notes
Not much to the script.

Terms and Conditions
Free for commercial and Non-commercial use.
Reply }




Users browsing this thread: 3 Guest(s)