赞 | 0 |
VIP | 0 |
好人卡 | 1 |
积分 | 1 |
经验 | 167035 |
最后登录 | 2013-9-15 |
在线时间 | 57 小时 |
Lv1.梦旅人 风之塞尔达
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 57 小时
- 注册时间
- 2005-10-22
- 帖子
- 2492
|
替换掉原来那个待机....
- 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
复制代码 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|