Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> 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
   
Night_Runner
post Apr 10 2012, 05:42 AM
Post #2


Level 50
Group Icon

Group: +Gold Member
Posts: 1,519
Type: Scripter
RM Skill: Undisclosed




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


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Xamasi
post Apr 10 2012, 09:16 AM
Post #3


Level 1
Group Icon

Group: Member
Posts: 11
Type: Musician
RM Skill: Intermediate




Very cool, Im thinking about using it, but does the frame persist threw battle or no?


__________________________


Read this stuff
Games working on:
Legend of Eternia (working tital)
Completion: ( 1%) Not anywhere near close

RPG currently playing: Phantasy Star 2
Go to the top of the page
 
+Quote Post
   
Kali3
post Apr 12 2012, 06:20 AM
Post #4


Level 2
Group Icon

Group: Member
Posts: 25
Type: Mapper
RM Skill: Intermediate




Nice script, I might use this.


__________________________
Better to understand a little than to misunderstand a lot.
Go to the top of the page
 
+Quote Post
   

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: 18th May 2013 - 06:46 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker