Project1
标题:
问个屏幕震动的问题……
[打印本页]
作者:
sjkd34
时间:
2009-1-31 23:45
标题:
问个屏幕震动的问题……
战斗时的画面震动效果如何实现?
动态伤害效果加强版脚本我用了,但是与彩虹神剑有冲突(只能实现全屏幕,其他效果消失)
http://rpg.blue/web/htm/news344.htm [LINE]1,#dddddd[/LINE]
此贴于 2009-2-6 10:32:05 被版主darkten提醒,请楼主看到后对本贴做出回应。
[LINE]1,#dddddd[/LINE]
版务信息:版主帮忙结贴~
作者:
天圣的马甲
时间:
2009-2-5 10:32
#_______________________________________________________________________________
# MOG Shake Effects V1.0 (08/06/2007)
#_______________________________________________________________________________
# By Moghunter
# http://www.atelier-rgss.com
#_______________________________________________________________________________
# - Permite que certas habilidades causem tremor na tela.
# - Danos críticos causam tremor na tela.
#_______________________________________________________________________________
module MOG
#-------------------------------------------------------------------------------
# Definição do nome do elemento que causará o tremor.
SHAKE_ELEMENT = "Shake"
#-------------------------------------------------------------------------------
# Som do dano crítico.
CRITICAL_SE = "054-Cannon03"
#-------------------------------------------------------------------------------
# Som da esquiva.
MISS_SE = "017-Jump03"
#-------------------------------------------------------------------------------
# Ativar Flash na tela.
FLASH_HIT = true
#-------------------------------------------------------------------------------
end
$mogscript = {} if $mogscript == nil
$mogscript["Shake_Effect"] = true
################
# Scene_Battle #
################
class Scene_Battle
alias mog55_update_phase4_step5 update_phase4_step5
def update_phase4_step5
for tgt in @target_battlers
if @active_battler.current_action.kind == 1 and tgt.damage > 0 and tgt.damage != "Miss"
skill_shake(@active_battler.current_action.skill_id)
end
if tgt.critical == true
$game_screen.start_shake(5,10,20)
Audio.se_play("Audio/SE/" + MOG::CRITICAL_SE ,100,100) rescue nil
$game_screen.start_flash(Color.new(255,0,0,150), 20) if MOG::FLASH_HIT == true
elsif tgt.damage == "Miss"
Audio.se_play("Audio/SE/" + MOG::MISS_SE ,100,100) rescue nil
$game_screen.start_flash(Color.new(0,0,0,150), 20)
end
end
mog55_update_phase4_step5
end
def skill_shake(skill_id)
if @skill.element_set.include?($data_system.elements.index(MOG::SHAKE_ELEMENT))
$game_screen.start_shake(5,10,20)
Audio.se_play("Audio/SE/" + MOG::CRITICAL_SE ,100,100) rescue nil
$game_screen.start_flash(Color.new(255,0,0,150), 20) if MOG::FLASH_HIT == true
return true
end
return false
end
end
复制代码
来自外站。需要增加震动效果的技能给个属性名shake。 [LINE]1,#dddddd[/LINE]
系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1