Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Game Frame
DrDhoom
post Apr 9 2012, 08:22 AM
Post #1


Level 2
Group Icon

Group: Member
Posts: 29
Type: Scripter
RM Skill: Intermediate




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


__________________________
Need a Scripter? PM me!
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- DrDhoom   Game Frame   Apr 9 2012, 08:22 AM
- - Night_Runner   For anyone wondering, this script recreates the th...   Apr 10 2012, 05:42 AM
- - Xamasi   Very cool, Im thinking about using it, but does th...   Apr 10 2012, 09:16 AM
- - Kali3   Nice script, I might use this.   Apr 12 2012, 06:20 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 09:08 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker