#========================================================================== # ** SG Stretch Battle Background #========================================================================== # sandgolem # www.gamebaker.com # Version 1 # 2.07.06 #========================================================================== # # To check for updates or find more scripts, visit: # http://www.gamebaker.com/rmxp/scripts/ # # To use this script, copy it and insert it in a new section above "Main", # under the default scripts, and the SDK if you're using it. # # Have problems? Official topic: # http://forums.gamebaker.com/showthread.php?t=145 # #========================================================================== begin SDK.log('SG Stretch Battle Background', 'sandgolem', 1, '2.07.06') if SDK.state('SG Stretch Battle Background') != true @sg_stretchbg_disabled = true end rescue end if !@sg_stretchbg_disabled #-------------------------------------------------------------------------- class Spriteset_Battle alias sandgolem_stretchedbg_spritebat_init initialize def initialize sandgolem_stretchedbg_spritebat_init @viewport1.rect.height = 480 end alias sandgolem_stretchedbg_spritebat_update update def update if @battleback_name != $game_temp.battleback_name @sg_stretch_bg = true end sandgolem_stretchedbg_spritebat_update if @sg_stretch_bg @battleback_sprite.zoom_y = 1.5 @battleback_sprite.src_rect.set(0, 0, 640, 480) @sg_stretch_bg = nil end end end #-------------------------------------------------------------------------- end