ANIMATION_DIVIDE=2
...
#--------------------------------------------------------------------------
# * Animation Divide
#--------------------------------------------------------------------------
def ANIMATION_DIVIDE
return ANIMATION_DIVIDE
end
...
def read_data(file)
mrmo_abs_scene_load_read_data(file)
$ABS = Marshal.load(file)
# Change Animation Size
for an in $data_animations
next if an == nil
frames = an.frames
for i in 0...frames.size
for j in 0...frames[i].cell_max
frames[i].cell_data[j, 1] /= $ABS.ANIMATION_DIVIDE
frames[i].cell_data[j, 2] /= $ABS.ANIMATION_DIVIDE
frames[i].cell_data[j, 3] /= $ABS.ANIMATION_DIVIDE
end
class Sprite_Base
if !defined?(animationDivide_set_sprites)
alias animationDivide_set_sprites animation_set_sprites
end
def animation_set_sprites(frame)
animationDivide_set_sprites(frame)
for i in 0..15
sprite = @animation_sprites[i]
next if !frame.cell_data[i, 0] || frame.cell_data[i, 0]==-1
if sprite && sprite.is_a?(Sprite)
#######
# Replace 2.0 below with the desired scale.
# Here using 2.0 reduces the animation size by half.
scale = 2.0
if @animation_mirror
sprite.x += frame.cell_data[i, 1]
sprite.x -= (frame.cell_data[i, 1] / scale)
else
sprite.x -= frame.cell_data[i, 1]
sprite.x += (frame.cell_data[i, 1] / scale)
end
sprite.y -= frame.cell_data[i, 2]
sprite.y += (frame.cell_data[i, 2] / scale)
sprite.zoom_x /= scale
sprite.zoom_y /= scale
#######
end
end
end
end