赞 | 1 |
VIP | 12 |
好人卡 | 3 |
积分 | 8 |
经验 | 45682 |
最后登录 | 2022-10-11 |
在线时间 | 173 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 775
- 在线时间
- 173 小时
- 注册时间
- 2008-11-22
- 帖子
- 112
|
本帖最后由 wyongcan2008 于 2012-2-5 14:58 编辑
楼主,你要的东西。。
角色脸图放在Graphics/Faces/face目录下,
命名为"face角色ID.png" ,比如"face1.png"就是一号角色战斗时显示的脸图
范例下载:点我下载- $se名 = [*"A".."E"]
- class Scene_Battle < Scene_Base
- alias start_actor_command_selection_old start_actor_command_selection
- def start_actor_command_selection
- start_actor_command_selection_old
- Audio.se_play("Audio/SE/" + BattleManager.actor.id.to_s + $se名[rand(4)] + ".ogg")
- @actorface = Sprite.new
- @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
- @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height
- end
- alias prior_command_old prior_command
- def prior_command
- @actorface.dispose if @actorface != nil && @actorface.disposed? != true
- prior_command_old
- end
- alias next_command_old next_command
- def next_command
- @actorface.dispose if @actorface != nil && @actorface.disposed? != true
- next_command_old
- end
- end
复制代码 |
|