awesome! thanks!
However when I use it, it gets rid of my battleback picture completely that I'm using from another script.
Here's the current script I'm using:
CODE
=begin
================================================================================
== Change Battle Background v1.0 ==
== GEXROX, 16th May 2010 ==
== Allows the battle background to not only be a picture, and not move, but ==
== to be changed at ANY time, not just by MapID, but by changing a variable. ==
================================================================================
== The script takes a picture from the 'BattleBack' folder in the 'Graphics' ==
== folder in the project folder beginning with 'BattleBack' and ending with ==
== a number (1,2,3, the list goes on) obtained from a variable. This allows ==
== the battle picture to be anything at all, and changable at will in the ==
== game. ==
================================================================================
== Compatibility: ==
== - Tested with RPG Tankentai SBS System 3.3d ==
== - Should work with any script that does not edit ==
== Spriteset_Battle. ==
================================================================================
== Comments: ==
== Yes, this is an extremely short script, but I like the idea of making a ==
== script, so I made it up really quickly when I couldn't find this kind ==
== of background changer. It's my first attempt at making a script (so when ==
== it worked for me, you can guess how much exited fanboy-style jumping ==
== around and giggling there was), so be gentle (teehee, innuendo). ==
================================================================================
=end
module Cache
def self.battleback(number)
load_bitmap("Graphics/BattleBacks/", "BattleBack" + number)
end
# Change BB_VARIABLE to the variable to link to the background images
BB_VARIABLE = 0 # Can be any number
end
class Spriteset_Battle
def create_battleback
source = $game_temp.background_bitmap
@battleback_sprite = Sprite.new(@viewport1)
@battleback_sprite.bitmap = Cache.battleback($game_variables[Cache::BB_VARIABLE].to_s)
end
end
Is there any way to combine the two so my battleback is layed over that default screenshot?
This post has been edited by hawkeye7704: Jun 2 2012, 11:04 AM