def draw_walk_actor_graphic(actor, x, y)
#该成VX
bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
w = bitmap.width / 4
h = bitmap.height / 4
根据@phase确定行走土
如果是大行走土,请自己修改坐标
case @phase
when 0
x = 0
when 1
x = w
when 2
x = w * 2
when 3
x = w * 3
end
src_rect = Rect.new(x, 0, w, h)
end
self.contents.blt(x bitmap, src_rect)
end
alias old_update update
def update
old_update
@index += 1
用SPEED来控制速度
if @turn_index == SPEED then
refresh
@index = 0
@phase = (@phase+1)%4
end
end 系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~