Project1
标题:
怎么让人物停止时会自动有小动作
[打印本页]
作者:
calvin0703
时间:
2010-12-18 17:24
标题:
怎么让人物停止时会自动有小动作
RT 以前有这个脚本的 现在找不到了
作者:
忧雪の伤
时间:
2010-12-18 17:27
class Game_Player < Game_Character
IDLE_DELAY_TIME = 1;
IDLE_ANIM_FILE_NAME = '_W';
alias idleAnim_initialize initialize;
def initialize()
idleAnim_initialize();
@idleTime = 0;
end
alias idleAnim_update update;
def update()
last_moving = moving?();
idleAnim_update();
if (!moving?())
if (IDLE_DELAY_TIME >= @idleTime)
@idleTime += 1;
else
if (!@step_anime && !last_moving)
@character_name += IDLE_ANIM_FILE_NAME;
@step_anime = true;
end
end
else
if (IDLE_DELAY_TIME < @idleTime)
player = $game_party.actors[0];
@character_name = nil == player ? "" : player.character_name;
@idleTime = 0;
@step_anime = false;
end
end
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1