--
I've been working with a script that readjusts VX's resolution to 640x480. I've solved most of the problems that occur as a side-effect of changing VX's resolution, aside from one major problem that I'm stuck on: battlers.
My problem is that enemy battlers are no longer centered on the default front-facing system.
I've tried adjusting the viewports in Spriteset_Battle and Sprite_Battler without much luck. Changing these values solves the problem:
CODE
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if @battler == nil
self.bitmap = nil
else
@use_sprite = @battler.use_sprite?
if @use_sprite
self.x = @battler.screen_x + 48 #added to adjust for 480p
self.y = @battler.screen_y + 70 #added to adjust for 480p
self.z = @battler.screen_z
update_battler_bitmap
end
setup_new_effect
update_effect
end
end
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if @battler == nil
self.bitmap = nil
else
@use_sprite = @battler.use_sprite?
if @use_sprite
self.x = @battler.screen_x + 48 #added to adjust for 480p
self.y = @battler.screen_y + 70 #added to adjust for 480p
self.z = @battler.screen_z
update_battler_bitmap
end
setup_new_effect
update_effect
end
end
However, this also affects actor battlers, which throws off animations targeting actors. Meanwhile, animations targeting enemies work fine.
I'm basically looking for a way to offset the default enemy battler locations so that they're centered normally again.