HelIo! I am using RPG maker xp and would like to use a current map where fighting is going on as a battle background. I found this script but i dont know how to use it. I Inserted it in Script editor but i guess i should also change something. Help please. 🙂
module Map_battleback_settings
On_switch = 1
end
class Spriteset_Battle
include Map_battleback_settings
#--------------------------------------------------------------------------
# * Get Battle Background (Floor) Bitmap
#--------------------------------------------------------------------------
alias xypher_map_battleback1 battleback1_bitmap
def battleback1_bitmap
if $game_switches[On_switch]
create_mapbattleback_bitmap
else
xypher_map_battleback1
end
end
#--------------------------------------------------------------------------
# * Get Battle Background (Wall) Bitmap
#--------------------------------------------------------------------------
alias xypher_map_battleback2 battleback2_bitmap
def battleback2_bitmap
if $game_switches[On_switch]
Bitmap.new(1, 1)
else
xypher_map_battleback2
end
end
#--------------------------------------------------------------------------
# * Create Battle Background Bitmap from Processed Map Screen
#--------------------------------------------------------------------------
def create_mapbattleback_bitmap
source = SceneManager.background_bitmap
bitmap = Bitmap.new(Graphics.width, Graphics.height)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap
end
end
module Map_battleback_settings
On_switch = 1
end
class Spriteset_Battle
include Map_battleback_settings
#--------------------------------------------------------------------------
# * Get Battle Background (Floor) Bitmap
#--------------------------------------------------------------------------
alias xypher_map_battleback1 battleback1_bitmap
def battleback1_bitmap
if $game_switches[On_switch]
create_mapbattleback_bitmap
else
xypher_map_battleback1
end
end
#--------------------------------------------------------------------------
# * Get Battle Background (Wall) Bitmap
#--------------------------------------------------------------------------
alias xypher_map_battleback2 battleback2_bitmap
def battleback2_bitmap
if $game_switches[On_switch]
Bitmap.new(1, 1)
else
xypher_map_battleback2
end
end
#--------------------------------------------------------------------------
# * Create Battle Background Bitmap from Processed Map Screen
#--------------------------------------------------------------------------
def create_mapbattleback_bitmap
source = SceneManager.background_bitmap
bitmap = Bitmap.new(Graphics.width, Graphics.height)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap
end
end