Hello
There are several scripts that turn current map into a battleback, but each of them either breaks something, or doesnt suffice my needs.
What I want is:
1. Keep transition to the battle scene intact
2. If possible and not super hard to do, keep events on (normally it just copies tiles and parallax)
Sometimes I'm overlaying Events with tile graphics on them on top of tiles, instead of creating new tiles of overlapping. Without those, map looks incomplete. Also, people disappear.
3. Being able to disable the whole thing with an in-game swich (outside of battle, obviously) and enable default swirly-blurry battleback
4. NOT keep weather and on-screen effects like snowflakes, which currently in my version get stuck on battleback and it looks messy.
This is what I'm currently using, and it fails to do all 4 points:
I've been able to fix battle transition back by removing "unless SHD::Use_Clear_Map_Battleback" from line 26, but the rest still leaves me wanting more
As I'm completely inexperienced in scripting, I'm not sure which of my requests are super easy to do right now, and which require tons of effort and rewriting the whole thing, so some help on that would be nice
thanks
There are several scripts that turn current map into a battleback, but each of them either breaks something, or doesnt suffice my needs.
What I want is:
1. Keep transition to the battle scene intact
2. If possible and not super hard to do, keep events on (normally it just copies tiles and parallax)
Sometimes I'm overlaying Events with tile graphics on them on top of tiles, instead of creating new tiles of overlapping. Without those, map looks incomplete. Also, people disappear.
3. Being able to disable the whole thing with an in-game swich (outside of battle, obviously) and enable default swirly-blurry battleback
4. NOT keep weather and on-screen effects like snowflakes, which currently in my version get stuck on battleback and it looks messy.
This is what I'm currently using, and it fails to do all 4 points:
module SHD
Use_Clear_Map_Battleback = true
end
module SceneManager
# Make clear snapshot for battleback
def self.snapshot_for_battleback
return unless SHD::Use_Clear_Map_Battleback
@background_bitmap.dispose if @background_bitmap
@background_bitmap = Graphics.snap_to_bitmap
end
end
class Scene_Map < Scene_Base
alias :dispose_spriteset_clr_bg :dispose_spriteset
def dispose_spriteset
SceneManager.snapshot_for_battleback if SceneManager.scene_is?(Scene_Battle)
dispose_spriteset_clr_bg
end
alias 😛erform_battle_transition_clr_bg 😛erform_battle_transition
def perform_battle_transition
perform_battle_transition_clr_bg unless SHD::Use_Clear_Map_Battleback
end
end
class Scene_Battle < Scene_Base
def pre_terminate
super
Graphics.fadeout(30) if SceneManager.scene_is?(Scene_Map) && !SHD::Use_Clear_Map_Battleback
Graphics.fadeout(60) if SceneManager.scene_is?(Scene_Title)
end
end
class Spriteset_Battle
alias :battleback1_bitmap_clr_bg :battleback1_bitmap
def battleback1_bitmap
if SHD::Use_Clear_Map_Battleback
copy_clear_background
else
battleback1_bitmap_clr_bg
end
end
alias :battleback2_bitmap_clr_bg :battleback2_bitmap
def battleback2_bitmap
if SHD::Use_Clear_Map_Battleback
Bitmap.new(1,1)
else
battleback2_bitmap_clr_bg
end
end
def copy_clear_background
source = SceneManager.background_bitmap
bitmap = Bitmap.new(Graphics.width, Graphics.height)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap
end
end
Use_Clear_Map_Battleback = true
end
module SceneManager
# Make clear snapshot for battleback
def self.snapshot_for_battleback
return unless SHD::Use_Clear_Map_Battleback
@background_bitmap.dispose if @background_bitmap
@background_bitmap = Graphics.snap_to_bitmap
end
end
class Scene_Map < Scene_Base
alias :dispose_spriteset_clr_bg :dispose_spriteset
def dispose_spriteset
SceneManager.snapshot_for_battleback if SceneManager.scene_is?(Scene_Battle)
dispose_spriteset_clr_bg
end
alias 😛erform_battle_transition_clr_bg 😛erform_battle_transition
def perform_battle_transition
perform_battle_transition_clr_bg unless SHD::Use_Clear_Map_Battleback
end
end
class Scene_Battle < Scene_Base
def pre_terminate
super
Graphics.fadeout(30) if SceneManager.scene_is?(Scene_Map) && !SHD::Use_Clear_Map_Battleback
Graphics.fadeout(60) if SceneManager.scene_is?(Scene_Title)
end
end
class Spriteset_Battle
alias :battleback1_bitmap_clr_bg :battleback1_bitmap
def battleback1_bitmap
if SHD::Use_Clear_Map_Battleback
copy_clear_background
else
battleback1_bitmap_clr_bg
end
end
alias :battleback2_bitmap_clr_bg :battleback2_bitmap
def battleback2_bitmap
if SHD::Use_Clear_Map_Battleback
Bitmap.new(1,1)
else
battleback2_bitmap_clr_bg
end
end
def copy_clear_background
source = SceneManager.background_bitmap
bitmap = Bitmap.new(Graphics.width, Graphics.height)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap
end
end
I've been able to fix battle transition back by removing "unless SHD::Use_Clear_Map_Battleback" from line 26, but the rest still leaves me wanting more
As I'm completely inexperienced in scripting, I'm not sure which of my requests are super easy to do right now, and which require tons of effort and rewriting the whole thing, so some help on that would be nice
thanks