替换同名方法
#--------------------------------------------------------------------------
# ● 更新动画
#--------------------------------------------------------------------------
def update_animation
if @animation_duration > 0
frame_index = @animation.frame_max - (@animation_duration + 3) / 4
animation_set_sprites(@animation.frames[frame_index])
for timing in @animation.timings
if timing.frame == frame_index
animation_process_timing(timing)
end
end
else
if @aloop
start_animation(@animation,@animation_mirror)
else
dispose_animation
end
end
end