赞 | 5 |
VIP | 359 |
好人卡 | 195 |
积分 | 3 |
经验 | 560179 |
最后登录 | 2024-11-20 |
在线时间 | 1374 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 280
- 在线时间
- 1374 小时
- 注册时间
- 2005-10-16
- 帖子
- 5113
|
哎………………………………
- module RPG
- class Sprite < ::Sprite
- def animation_process_timing(timing, hit)
- if (timing.condition == 0) or
- (timing.condition == 1 and hit == true) or
- (timing.condition == 2 and hit == false)
- if timing.se.name != ""
- se = timing.se
- p se.volume,se.pitch
- Audio.se_play("Audio/SE/" + se.name, se.volume * $game_variables[2] / 100, se.pitch)
- end
- case timing.flash_scope
- when 1
- self.flash(timing.flash_color, timing.flash_duration * 2)
- when 2
- if self.viewport != nil
- self.viewport.flash(timing.flash_color, timing.flash_duration * 2)
- end
- when 3
- self.flash(nil, timing.flash_duration * 2)
- end
- end
- end
- end
- end
复制代码
或者
- module Audio
- alias se_play old_se_play
- def se_play(filename, volume = 80, pitch = 100)
- old_se_play(filename, volume * $game_variables[2] / 100, pitch)
- end
- end
复制代码
遇到问题还是多思考吧 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|