Hello all!! as you can see, I'm using Mascaporne's really wonderful animation packs for a project I'm working on.. But I'm having a problem with it ingame..
it's just that, all the animations tend to become too bright and I can no longer see the battle menu.. Is there any way that I can change it in the scripts so that the battle-menu won't be overlayed by the battle anims??.. like the battle anims can be as bright as they can, but the battle-window would still be prioritized and I can still see the "Attack, Defend, Item, etc." without the battle animations covering them all over the place! x((
Thanks so much for anyone who can help! 🙂
In Window_BattleStatus (I think that's what it's called), in the initialize function, add this:
this.z = 9999
That will make it "always on top" of anything else. (I think that should work, it's been a while since I used xp and I don't have it in front of me).
Hi Amy Pond!! Thanks for the reponse!! but unfortunately, it didn't seem to work x(( hmm, maybe I put it wrong??
Anyway, since you do not have xp.. here is Window_BattleStatus:
#==============================================================================
# ** Window_BattleStatus
#------------------------------------------------------------------------------
# This window displays the status of all party members on the battle screen.
#==============================================================================
class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 320, 640, 160)
self.contents = Bitmap.new(width - 32, height - 32)
@level_up_flags = [false, false, false, false]
refresh
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# * Set Level Up Flag
# actor_index : actor index
#--------------------------------------------------------------------------
def level_up(actor_index)
@level_up_flags[actor_index] = true
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors
actor_x = i * 160 + 4
draw_actor_name(actor, actor_x, 0)
draw_actor_hp(actor, actor_x, 32, 120)
draw_actor_sp(actor, actor_x, 64, 120)
if @level_up_flags
self.contents.font.color = normal_color
self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
else
draw_actor_state(actor, actor_x, 96)
end
end
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
# Slightly lower opacity level during main phase
if $game_temp.battle_main_phase
self.contents_opacity -= 4 if self.contents_opacity > 191
else
self.contents_opacity += 4 if self.contents_opacity < 255
end
end
end
Maybe you can have a clearer view there Amy Pond!! Thanks so much once again! 🙂
Sorry I'm used to javascript. It's self.z, not this.z.
I think if you add a new line after line 13, and put
self.z = 9999
It should work.