class Window_Base < Window include VIPArcher::DIR8_ANIME #-------------------------------------------------------------------------- # ● 绘制人物行走图 #-------------------------------------------------------------------------- def draw_character(character_name, character_index, x, y) return unless character_name bitmap = Cache.character(character_name) if character_name =~ /\[f\d+#?\d*\]/i frame = get_frame(character_name) first = get_halt_name(character_name) else frame,first = 3,1 end sign = character_name[/^[\@\!\$]../] if sign && sign.include?('$') cw = bitmap.width / frame ch = bitmap.height / 4 else cw = bitmap.width / (frame * 4) ch = bitmap.height / 8 end n = character_index src_rect = Rect.new((n%4*3+first)*cw, (n/4*4)*ch, cw, ch) contents.blt(x - cw / 2, y - ch, bitmap, src_rect) end end
afeijun 发表于 2020-1-12 20:28
转为JS文件后,放去MV里,MV测不出来,描述什么都没有,使用后没效果呢。反倒是老板本那个所有帧推一个图的 ...
%8v015.png (21.9 KB, 下载次数: 63)
afeijun 发表于 2020-1-14 17:17
谢谢大佬的提醒,在贴子里翻来翻去,下了好几个,终于新版的015版在MV上可以用了
因为我是菜鸟一名,又不 ...
afeijun 发表于 2020-1-14 17:17
谢谢大佬的提醒,在贴子里翻来翻去,下了好几个,终于新版的015版在MV上可以用了
因为我是菜鸟一名,又不 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |