Help - Search - Members - Calendar
Full Version: Game Frame
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS2-Submissions
DrDhoom
Game Frame

Version 1.0
Author DrDhoom
Release Date 10-04-2012



Introduction
Just making for this thread request smile.gif


Features
* Can be disabled in specified scene

Script
script
CODE
#===============================================================================
#-----------------------------= Game Frame =------------------------------------
#-----------------------------= by: DrDhoom =-----------------------------------
# Version: 1.0
# Date Published: 10 - 01 - 2012
#-------------------------------------------------------------------------------
# Introduction:
# You know what this is for.
#-------------------------------------------------------------------------------
# How to use:
#   - Insert this script above Main and Below Requirment Script
#   - Put Game Frame graphic at Graphics>System folder, then change the filename
#     to "game_frame"
#-------------------------------------------------------------------------------
#===============================================================================

module Dhoom
  module GameFrame
    #Don't draw the Game Frame at specified Scene
    #EXCLUDE_SCENE = [Scene Name, Scene Name, ...]
    EXCLUDE_SCENE = [Scene_Title, Scene_Item]
  end
end

class Scene_Base
  
  include Dhoom::GameFrame
  
  alias dhoom_game_frame_start start
  alias dhoom_game_frame_update update
  alias dhoom_game_frame_terminate terminate
  
  def start
    create_game_frame
    dhoom_game_frame_start
  end    
  
  def update
    update_game_frame
    dhoom_game_frame_update
  end
  
  def terminate
    dispose_game_frame
    dhoom_game_frame_terminate
  end
  
  def create_game_frame
    for scene in EXCLUDE_SCENE
      return if $scene.is_a?(scene)
    end
    @game_frame = Sprite.new
    @game_frame.bitmap = Cache.system("game_frame")
    @game_frame.z = 9999999
  end
  
  def update_game_frame
    @game_frame.z = 9999999 if @game_frame != nil
  end
  
  def dispose_game_frame
    @game_frame.dispose if @game_frame != nil
  end
end



Customization
Look at the module, please XD


Compatibility
No conflict for this time


Screenshot
http://i963.photobucket.com/albums/ae115/DrDhoom/ssgf.jpg


DEMO
http://www.mediafire.com/?kn1n77dlyyrf0rd

Installation
Place above Main

Terms and Conditions
You can use it for Non-commercial or Commercial project

Credits
DrDhoom
Night_Runner
For anyone wondering, this script recreates the the HUD from Glory of heracles 3 (more info in the Introduction link)

Nice script, thanks Dr smile.gif
Xamasi
Very cool, Im thinking about using it, but does the frame persist threw battle or no?
Kali3
Nice script, I might use this.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.