Project1

标题: 使八方向脚本不会让NPC用8*8的行走图 [打印本页]

作者: 574656549    时间: 2011-8-1 12:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: Wind2010    时间: 2011-8-1 15:26
把NPC的角色图片做成8×8的,斜方向行走图留空然后不让NPC斜方向走就行了
作者: 灵魂の补给    时间: 2011-8-1 15:49
在class Sprite_Character < RPG::Sprite中47行:
@cw = bitmap.width / 4
@ch = bitmap.height / 4
改为
if @character == $game_player
@ch = bitmap.height / 8
@cw = bitmap.width / 8
else
@ch = bitmap.height / 4
@cw = bitmap.width / 4
end




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1