10-24-2023, 02:07 AM
(This post was last modified: 09-02-2024, 05:24 PM by DerVVulfman.)
ChangeBattleBack VX
by Kyonides
Introduction
By default, VX has no direct way to let you change the battle background or floor during gameplay.
But don't worry about it! I've got the right solution to your graphical issues.
It's very easy to use it indeed.
Copy and paste it and then make 1 or 2 script calls BEFORE battle even begins and that's it, my friend!
Please read the embedded comments to learn all about those brand new script calls.
The Script
Code:
# * Change BattleBack VX * #
# Scripter : Kyonides Arkanthes
# 2023-10-23
# This scriptlet allows you to manually change both the battleback and
# the battlefloor by using a script call BEFORE battle begins.
# - Change Battleback: Here's an Example:
# $game_temp.battleback = "WhyNotHAL-2000"
# - Change Battlefloor: Here's an Example:
# $game_temp.battlefloor = "YourBattleFloor"
class Game_Temp
attr_accessor :battleback, :battlefloor
end
class Spriteset_Battle
def create_battleback
if $game_temp.battleback
bitmap = Cache.picture($game_temp.battleback)
$game_temp.battleback = nil
else
source = $game_temp.background_bitmap
bitmap = Bitmap.new(640, 480)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap.radial_blur(90, 12)
end
@battleback_sprite = Sprite.new(@viewport1)
@battleback_sprite.bitmap = bitmap
@battleback_sprite.ox = 320
@battleback_sprite.oy = 240
@battleback_sprite.x = 272
@battleback_sprite.y = 176
@battleback_sprite.wave_amp = 8
@battleback_sprite.wave_length = 240
@battleback_sprite.wave_speed = 120
end
def create_battlefloor
@battlefloor_sprite = Sprite.new(@viewport1)
if $game_temp.battlefloor
@battlefloor_sprite.bitmap = Cache.picture($game_temp.battlefloor)
$game_temp.battlefloor = nil
else
@battlefloor_sprite.bitmap = Cache.system("BattleFloor")
end
@battlefloor_sprite.x = 0
@battlefloor_sprite.y = 192
@battlefloor_sprite.z = 1
@battlefloor_sprite.opacity = 128
end
end
Terms & Conditions
Free for use in ANY game.
That's it!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE