| 赞 | 4  | 
 
| VIP | 71 | 
 
| 好人卡 | 22 | 
 
| 积分 | 7 | 
 
| 经验 | 32145 | 
 
| 最后登录 | 2013-8-9 | 
 
| 在线时间 | 184 小时 | 
 
 
 
 
 
Lv2.观梦者 天仙 
	- 梦石
 - 0 
 
        - 星屑
 - 680 
 
        - 在线时间
 - 184 小时
 
        - 注册时间
 - 2008-4-15
 
        - 帖子
 - 5023
 
 
  
 
 | 
	
以下引用八云紫于2008-4-11 21:27:44的发言: 
回LS,xp的脚本基本上不能在VX上运行,要进行转换,改写的。 
 
问下版主:脚本中关于描绘 行走图 移动动画的语句在哪呢?总是找不到。  
 
他用的似乎是VX版本 
我没用过,暂不予作答。 
 
描绘行走图的语句在Game_Character里346行和Sprite_Character里107行 
Game_Character 
 
-   def update_animation
 
 -     speed = @move_speed + (dash? ? 1 : 0)
 
 -     if @anime_count > 18 - speed * 2
 
 -       if not @step_anime and @stop_count > 0
 
 -         @pattern = @original_pattern
 
 -       else
 
 -         @pattern = (@pattern + 1) % 4
 
 -       end
 
 -       @anime_count = 0
 
 -     end
 
 -   end
 
  复制代码 
Sprite_Character 
-   def update_src_rect
 
 -     if @tile_id == 0
 
 -       index = @character.character_index
 
 -       pattern = @character.pattern < 3 ? @character.pattern : 1
 
 -       sx = (index % 4 * 3 + pattern) * @cw
 
 -       sy = (index / 4 * 4 + (@character.direction - 2) / 2) * @ch
 
 -       self.src_rect.set(sx, sy, @cw, @ch)
 
 -     end
 
 -   end
 
 
  复制代码 
 |   
 
 
 
 |