赞 | 159 |
VIP | 0 |
好人卡 | 0 |
积分 | 263 |
经验 | 0 |
最后登录 | 2024-11-22 |
在线时间 | 5357 小时 |
Lv5.捕梦者
- 梦石
- 0
- 星屑
- 26303
- 在线时间
- 5357 小时
- 注册时间
- 2016-3-8
- 帖子
- 1655
|
- #==============================================================================
- # 静止时踏步动画的角色
- # Version: 1.0
- # Author: modern algebra (rmrk.net)
- # Date: April 26, 2012
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # 介绍:
- #
- # 本脚本可以使某个角色在不移动时显示踏步动画,无论是队长或队友都行。
- # 可以做到飞行的角色不断扇动翅膀飞行的效果。
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # 使用方法:
- # 在角色的备注栏里填入:
- #
- # \Step
- #==============================================================================
- $imported ||= {}
- $imported[:"MA_ActorStepping_1.0"] = true
- #==============================================================================
- # ** Game_Actor
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Summary of Changes:
- # new attr_writer - maas_step_anime=
- # new method - maas_step_anime
- #==============================================================================
- class Game_Actor
- #--------------------------------------------------------------------------
- # * Public Instance Variables
- #--------------------------------------------------------------------------
- attr_writer :maas_step_anime
- #--------------------------------------------------------------------------
- # * Step Animation?
- #--------------------------------------------------------------------------
- def maas_step_anime
- @maas_step_anime = !actor.note[/\\STEP/i].nil? if !@maas_step_anime
- @maas_step_anime
- end
- end
- #==============================================================================
- # ** Game_Player
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Summary of Changes:
- # aliased method - refresh
- #==============================================================================
- class Game_Player
- #--------------------------------------------------------------------------
- # * Refresh
- #--------------------------------------------------------------------------
- alias maas_refresh_3jv8 refresh
- def refresh(*args, &block)
- maas_refresh_3jv8(*args, &block) # Call Original Method
- @step_anime = actor ? actor.maas_step_anime : false
- end
- end
- #==============================================================================
- # ** Game_Follower
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Summary of Changes:
- # aliased method - update_anime_count
- #==============================================================================
- class Game_Follower
- #--------------------------------------------------------------------------
- # * Update Animation Count
- #--------------------------------------------------------------------------
- alias maas_updatanimcnt_4vx9 update_anime_count
- def update_anime_count(*args, &block)
- @step_anime = actor ? actor.maas_step_anime : false
- maas_updatanimcnt_4vx9(*args, &block) # Call Original Method
- end
- end
复制代码 |
评分
-
查看全部评分
|