赞 | 2 |
VIP | 109 |
好人卡 | 208 |
积分 | 4 |
经验 | 22037 |
最后登录 | 2024-11-11 |
在线时间 | 1198 小时 |
Lv2.观梦者 虚構歪曲
- 梦石
- 0
- 星屑
- 364
- 在线时间
- 1198 小时
- 注册时间
- 2010-12-18
- 帖子
- 3928
|
- 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
复制代码 |
|