| 赞 | 18  | 
 
| VIP | 94 | 
 
| 好人卡 | 0 | 
 
| 积分 | 111 | 
 
| 经验 | 60791 | 
 
| 最后登录 | 2022-2-2 | 
 
| 在线时间 | 1155 小时 | 
 
 
 
 
 
Lv4.逐梦者 ST戰士 
	- 梦石
 - 11 
 
        - 星屑
 - 82 
 
        - 在线时间
 - 1155 小时
 
        - 注册时间
 - 2007-5-5
 
        - 帖子
 - 3489
 
 
  
 
 | 
	
直接套用脚本吧~ 
 
 
- #==============================================================================
 
 - # 本脚本来自www.66RPG.com,使用和转载请保留此信息
 
 - #==============================================================================
 
  
- WALK2_REFRESH_FRAME_SPEED = 20  # 刷新的速度,越大越慢,你可以改为3左右试试看
 
  
- #==============================================================================
 
 - # Window_Status
 
 - #==============================================================================
 
 - class  Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # 初始化方法
 
 -   #--------------------------------------------------------------------------
 
 -   alias initialize_walk2 initialize 
 
 -   def initialize(x, y, width, height)
 
 -     initialize_walk2(x, y, width, height)
 
 -     @start_walk = false
 
 -     @turn_index = 0
 
 -     @turn_phase = 0
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ★  角色行走图
 
 -   #     actor : 角色
 
 -   #     x     : 描绘的 X 坐标
 
 -   #     y     : 描绘的 Y 坐标
 
 -   #--------------------------------------------------------------------------
 
 -   def draw_walk2_actor_graphic(actor, x, y)
 
 -     bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
 
 -     cw = bitmap.width / 4
 
 -     ch = bitmap.height / 4
 
 -     @start_turn = true
 
 -     case @turn_phase
 
 -     when 0
 
 -       x_x = 0
 
 -     when 1
 
 -       x_x = cw
 
 -     when 2
 
 -       x_x = cw * 2
 
 -     when 3
 
 -       x_x = cw * 3
 
 -     end
 
 -     src_rect = Rect.new(x_x, 0, cw, ch)
 
 -     self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ★  角色转向图
 
 -   #     actor : 角色
 
 -   #     x     : 描绘的 X 坐标
 
 -   #     y     : 描绘的 Y 坐标
 
 -   #--------------------------------------------------------------------------
 
 -   def draw_turn_actor_graphic(actor, x, y)
 
 -     bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
 
 -     cw = bitmap.width / 4
 
 -     ch = bitmap.height / 4
 
 -     @start_turn = true
 
 -     case @turn_phase
 
 -     when 0
 
 -       x_x = 0
 
 -     when 1
 
 -       x_x = ch
 
 -     when 2
 
 -       x_x = ch * 3
 
 -     when 3
 
 -       x_x = ch * 2
 
 -     end
 
 -     src_rect = Rect.new(0, x_x, cw, ch)
 
 -     self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   #  更新(可别使用刷新,玩命耗费内存= =)
 
 -   #--------------------------------------------------------------------------
 
 -   alias walk2_update update
 
 -   def update
 
 -     walk2_update
 
 -     if @start_turn == true
 
 -       @turn_index += 1
 
 -       if @turn_index == WALK2_REFRESH_FRAME_SPEED
 
 -         refresh
 
 -         @turn_index = 0
 
 -         @turn_phase = (@turn_phase+1)%4
 
 -       end
 
 -     end
 
 -   end  
 
 - end
 
  
- #==============================================================================
 
 - # Window_Status
 
 - #==============================================================================
 
 - class Window_Status < Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # 把原有静态图改为动态走步图
 
 -   #--------------------------------------------------------------------------
 
 -   def draw_actor_graphic(actor, x, y)
 
 -     draw_walk2_actor_graphic(actor, x, y)
 
 -   end
 
 - end
 
  
- #==============================================================================
 
 - # 本脚本来自www.66RPG.com,使用和转载请保留此信息
 
 - #==============================================================================
 
 
  复制代码 版主对此帖的认可:『正确解答,补上悬赏积分100分+1卡(=250分),感谢你的热心解答...』,积分『+350』。 |   
 
 
 
 |