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
> Menu Background Effects Version 1.0
woratana
post Jan 31 2008, 08:41 PM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

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




Menu Background Effects
Version 1.0
by Woratana
Release Date: 31/01/2008


Introduction
This script will allow you to change menu's background to different style + movable background!

and allow you to change opacity of windowskins.


Features
Version 1.0
- Change Menu's background to...
[Show/Hide] 2 New Styles of Background!

* 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

Script
Place it above main.
if you have problem with codebox, you can download script in text file here:
Attached File  custombg10.txt ( 2.37K ) Number of downloads: 675

CODE
#======================================================================
========
# ¦ [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



Instruction
Find 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 Notes
Free 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.


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
neclords
post Feb 1 2008, 02:27 AM
Post #2


Love me! I wanna you to love me!
Group Icon

Group: Revolutionary
Posts: 196
Type: Event Designer
RM Skill: Beginner




Cool..


__________________________

~Time To sWallow tHe Pain and VaniSH OuR HuRt~
Go to the top of the page
 
+Quote Post
   
jasonicus
post Feb 1 2008, 07:38 AM
Post #3


All Lies Lead to the Truth
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Developer
RM Skill: Advanced




Nice script. Between you and deadlydan, we are getting a lot of useful scripts.
Go to the top of the page
 
+Quote Post
   
Rory
post Feb 1 2008, 07:57 AM
Post #4


GFX Pro
Group Icon

Group: +Gold Member
Posts: 409
Type: Artist
RM Skill: Skilled




Awesome! It made my Windows look 10x better!


__________________________

THE SAVAGE NYMPH
Note: this is Magdreamer, I'm using my real name for my forum name now.
Go to the top of the page
 
+Quote Post
   
patryk1303
post Feb 1 2008, 09:59 AM
Post #5



Group Icon

Group: Member
Posts: 1
Type: None
RM Skill: Skilled




This script is...very, very good wink.gif
I like it smile.gif wink.gif
Go to the top of the page
 
+Quote Post
   
Rory
post Feb 1 2008, 10:16 AM
Post #6


GFX Pro
Group Icon

Group: +Gold Member
Posts: 409
Type: Artist
RM Skill: Skilled




It looks fantastic, before, I thought it looked better when it was more opaque, but it seems I was wrong, smile.gif



__________________________

THE SAVAGE NYMPH
Note: this is Magdreamer, I'm using my real name for my forum name now.
Go to the top of the page
 
+Quote Post
   
woratana
post Feb 1 2008, 05:16 PM
Post #7


Looking for scripter to hire? PM me *O*
Group Icon

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




@Magdreamer
Hey, I love your windowskin!

Where can I find it?


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
dokdo2005
post Mar 22 2008, 10:20 PM
Post #8



Group Icon

Group: Member
Posts: 3
Type: Event Designer
RM Skill: Skilled




Good..I'll scrap it.
Go to the top of the page
 
+Quote Post
   
oblivionator
post Mar 24 2008, 10:57 AM
Post #9


Level 8
Group Icon

Group: Revolutionary
Posts: 124
Type: Event Designer
RM Skill: Advanced




that's an awesome script! but may I know if there is any way to hide the borders of the windows too?

anyone please help. thanks in advance!


__________________________

Join the Team NOW! =D


Current Projects:
-Khaos Spiral




Go to the top of the page
 
+Quote Post
   
HeroOfHyla
post Mar 24 2008, 11:11 AM
Post #10


Twirling towards freedom
Group Icon

Group: +Gold Member
Posts: 2,791
Type: Scripter
RM Skill: Advanced




1. Make a new windowskin that doesn't have window borders.
2. Import it.
3. In Scene_Menu, find def start.

Add this: (I put it after the @gold_Window = Window_gold.new, etc) commands, but I'm not sure whether you need to)
CODE
@gold_window.windowskin = Cache.system("Your Windowskin Name goes here")
@command_window.windowskin = Cache.system("Windowskin Name")
@status_window.windowskin=Cache.system("Windowskin Name")

the @gold_window line changes the skin for the gold window, and so on.


__________________________
Asexual - Arizonan - Atheist
I've got a gmail account and a yahoo mail account under this name, if you need to contact me.
You can find me on facebook too. facebook.com/heroofhyla . If you send me a friend request, tell me who you are so I don't get confused.

PlagueRPG SITE IS WORKING! (if you see "test page," hit ctrl+f5)
Latest update: New battle system demo, April 19, 2010

http://heroofhyla.deviantart.com/ ----- http://heroofhyla.livejournal.com/ ----- http://thatonecomic.smackjeeves.com
Go to the top of the page
 
+Quote Post
   
oblivionator
post Mar 24 2008, 11:25 AM
Post #11


Level 8
Group Icon

Group: Revolutionary
Posts: 124
Type: Event Designer
RM Skill: Advanced




QUOTE (HeroOfHyla @ Mar 24 2008, 10:18 AM) *
1. Make a new windowskin that doesn't have window borders.
2. Import it.
3. In Scene_Menu, find def start.

Add this: (I put it after the @gold_Window = Window_gold.new, etc) commands, but I'm not sure whether you need to)
CODE
@gold_window.windowskin = Cache.system("Your Windowskin Name goes here")
@command_window.windowskin = Cache.system("Windowskin Name")
@status_window.windowskin=Cache.system("Windowskin Name")

the @gold_window line changes the skin for the gold window, and so on.


cool thanks! you're a big help!

UPDATE: i found out that I needed to swap the background graphics for each sections of the menu, for example the Status, the Equip, and the Items section, any idea how to do that? once again any help will be appreciated, thanks.

This post has been edited by oblivionator: Mar 24 2008, 08:30 PM


__________________________

Join the Team NOW! =D


Current Projects:
-Khaos Spiral




Go to the top of the page
 
+Quote Post
   
BPM999
post Jul 17 2008, 06:47 PM
Post #12


Level 2
Group Icon

Group: Member
Posts: 27
Type: None
RM Skill: Undisclosed




is there a way to make the background scroll? I think that would look fantastic
Go to the top of the page
 
+Quote Post
   
NiuHaka
post Aug 26 2008, 04:34 PM
Post #13



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




Reproting a little bug. It seems to only be a cosmetic thing but i thought you might want to know.

When i go to the menu, the background map blurs as normal. Then if i select any of the options like Item, Skill, or Equip, and then exit back to the main menu screen, the background blurs more that it was before. If i keep doing this the background gets more and more blury each time. Also, I've noticed that there is a fraction of a second lag time between each menu that isn't there without this script.

Keep up the insanely good work!

This post has been edited by NiuHaka: Aug 26 2008, 04:36 PM
Go to the top of the page
 
+Quote Post
   
Kuma-san
post Sep 1 2008, 10:56 AM
Post #14


「VOIDVOIDVOID」
Group Icon

Group: Revolutionary
Posts: 291
Type: Writer
RM Skill: Skilled




Hey can you use the .gif file type instead of .jpeg or .png?


__________________________
[Show/Hide] Signature.
[Show/Hide] Best real-life quote. Ever
Teacher- Do you think your cute? Do you think your funny?
Student- I think I'm SEXY.

[Show/Hide] Userbars






[Show/Hide] My Tarot Card.

"Prudence, Caution, Deliberation.

The Hermit points to all things hidden, such as knowledge and inspiration,hidden enemies. The illumination is from within, and retirement from participation in current events.

The Hermit is a card of introspection, analysis and, well, virginity. You do not desire to socialize; the card indicates, instead, a desire for peace and solitude. You prefer to take the time to think, organize, ruminate, take stock. There may be feelings of frustration and discontent but these feelings eventually lead to enlightenment, illumination, clarity.

The Hermit represents a wise, inspirational person, friend, teacher, therapist. This a person who can shine a light on things that were previously mysterious and confusing.
"
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: 22nd May 2013 - 09:13 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker