本帖最后由 灯笼菜刀王 于 2022-8-8 13:09 编辑  
 
class Scene_Title   def initialize     @t = 0   end   alias old_update update   def update     @sprite.src_rect(@t,0,640,480)      if Graphics.frame_count % 4 == 0       @t += 640       @t = 0 if @t >= @sprite.bitmap.width     end     old_update   end end 
 
 class Scene_Title  
  def initialize  
    @t = 0  
  end  
  alias old_update update  
  def update  
    @sprite.src_rect(@t,0,640,480)   
    if Graphics.frame_count % 4 == 0  
      @t += 640  
      @t = 0 if @t >= @sprite.bitmap.width  
    end  
    old_update  
  end  
end  
 
  
 
用法: 把该脚本塞到main前, 并把数张标题背景(640*480)横向合并成一长条即可循环播放(间隔4帧) 
 
  随手写的, 应该没BUG吧.... |