04-18-2010, 12:19 PM
Yep, me again.
I recently stumbled accross the Count Time Battle system, and I really like the zoom effect, now, I'm using MGC's First Person Laberynth Explorer with his script that uses the current map as the Battle Background. It all works very well with this Battle script added as long as the zoom is switched off, however once I start using the zoom effect. The error occurs within this method of the battle script.
Is says there is a 'Type Error' and that 'nil can't be coerced into Fixnum' on line 2462, which is
Is there a way of making these two scripts compatible? If not I can live without the zoom effect, however it does look very nice and would liven up my battles considerably. Any help would be much appreciated!
I recently stumbled accross the Count Time Battle system, and I really like the zoom effect, now, I'm using MGC's First Person Laberynth Explorer with his script that uses the current map as the Battle Background. It all works very well with this Battle script added as long as the zoom is switched off, however once I start using the zoom effect. The error occurs within this method of the battle script.
Code:
#--------------------------------------------------------------------------
# * When the screen goes outside the picture, revision processing
#--------------------------------------------------------------------------
def screen_over
width = @battleback_sprite.bitmap.width * @base_zoom * @target_zoom / 2
unless 324 + @target_x > width and 324 - @target_x > width
if 324 + @target_x > width
@target_x = width - 324
elsif 324 - @target_x > width
@target_x = 324 - width
end
end
height = @battleback_sprite.bitmap.height * @base_zoom * @target_zoom / 4
unless @target_y > height - 4 and 484 - @target_y > 3 * height
if @target_y > height - 4
@target_y = height - 4
elsif 484 - @target_y > 3 * height
@target_y = 484 - 3 * height
end
end
end
end
Code:
width = @battleback_sprite.bitmap.width * @base_zoom * @target_zoom / 2
Is there a way of making these two scripts compatible? If not I can live without the zoom effect, however it does look very nice and would liven up my battles considerably. Any help would be much appreciated!