Menu Background EffectsVersion 1.0
by Woratana
Release Date: 31/01/2008
IntroductionThis script will allow you to change menu's background to different style + movable background!
and allow you to change opacity of windowskins.
FeaturesVersion 1.0- Change Menu's background to...
* Custom Background Image

* Default Background but Brighter!

- Default Background

- Movable Background! (set the movement in X/Y like when you set Parallax (Panorama) in VX)
- Change specific window opacity for Menus and Title Screen
- Turn on/off Blur effect of Menu Background
ScriptPlace it above main.
if you have problem with codebox, you can download script in text file here:
custombg10.txt ( 2.37K )
Number of downloads: 675CODE
#======================================================================
========
# ¦ [RMVX] Custom Menu Background Effects & Opacity
#------------------------------------------------------------------------------
# Version 1.0
# by Woratana [woratana@hotmail.com]
# Release Date: 31/01/2008
#
# Exclusive for RPG RPG Revolution
#==============================================================================
module WorBG
#----------------------------------------
# SETUP MENU BACKGROUND & OPACITY HERE!
#---------------------------------------
BG_MODE = 0 # Mode of BG
BG_BLUR = true # Turn on (true)/ off (false) to make background blur
WINDOW_OPACITY = 100 # Opacity for Menu Screens
THICK_WINDOW_OPACITY = 200 # Opacity for Windows in Title/Battle/End Screens
BG_MOVE_X = 0 # Move Background in X-coordinate
BG_MOVE_Y = 0 # Move Background in Y-coordinate
BG_PICTURE = "filename" # Picture file name when you use custom BG (mode 2)
end
class Scene_Base
def create_menu_background
@menuback_sprite = Plane.new
case WorBG::BG_MODE
when 0 # Default BG
@menuback_sprite.bitmap = $game_temp.background_bitmap
@menuback_sprite.color.set(16, 16, 16, 128)
when 1 # Brighter Default BG
@menuback_sprite.bitmap = $game_temp.background_bitmap
when 2 # Custom BG
@menuback_sprite.bitmap = Cache.picture(WorBG::BG_PICTURE)
else
@menuback_sprite.bitmap = $game_temp.background_bitmap
@menuback_sprite.color.set(16, 16, 16, 128)
end
@menuback_sprite.bitmap.blur if WorBG::BG_BLUR == true
update_menu_background
end
alias wor_scebase_upd update
def update
@menuback_sprite.ox += WorBG::BG_MOVE_X if @menuback_sprite != nil and WorBG::BG_MOVE_X != 0
@menuback_sprite.oy += WorBG::BG_MOVE_Y if @menuback_sprite != nil and WorBG::BG_MOVE_Y != 0
end
def snapshot_for_background
$game_temp.background_bitmap.dispose
$game_temp.background_bitmap = Graphics.snap_to_bitmap
end
end # Class End
class Window_Base
alias wor_winbase_ini initialize
def initialize(x, y, width, height)
wor_winbase_ini(x, y, width, height)
if $scene.is_a?(Scene_Title) or $scene.is_a?(Scene_Battle) or $scene.is_a?(Scene_End)
self.back_opacity = WorBG::THICK_WINDOW_OPACITY
else
self.back_opacity = WorBG::WINDOW_OPACITY
end
end
end
InstructionFind these lines to setup the script
CODE
#----------------------------------------
# SETUP MENU BACKGROUND & OPACITY HERE!
#---------------------------------------
BG_MODE = 0
BG_BLUR = true
WINDOW_OPACITY = 100
THICK_WINDOW_OPACITY = 200
BG_MOVE_X = 0
BG_MOVE_Y = 0
BG_PICTURE = "filename"
BG_MODE = Mode of Special Background you want to use, put 0 1 or 2
0 - Default Background
1 - Default Background with brighter color
2 - Custom Background Image (Type filename in
BG_PICTURE = "filename", and the picture must be in Picture folder of your project)
BG_BLUR =
true (make the background blur) or
false (don't make the background blur)
WINDOW_OPACITY =
0 to
255 (Opacity of of Windows in Menus screen)
THICK_WINDOW_OPACITY =
0 to
255 (Opacity of of Windows in Title Screen, Battle, and End Screen)
BG_MOVE_X = (number) << Move background vertically
BG_MOVE_Y = (number) << Move background horizontally
You can use negative(-) number and you can set values for both X and Y
BG_PICTURE = "filename" << Fill the filename
without file type , and the file must be in Picture folder of your game.
Fill this if you want to use
Custom Background Image Mode (BG_MODE = 2)
e.g. If you want to use image "rpgrevo.jpg" for background, put it in folder "Picture" of your game, and fill in "filename" like this:
CODE
BG_PICTURE = "rpgrevo"
Author's NotesFree for use in your non-commercial work if credit included. If your project is commercial, please contact me.
Please do not redistribute this script without permission.
And don't post this script out of http://rpgrevolution.com/ without permission.