本帖最后由 blackpineapple 于 2023-1-6 01:47 编辑
大成功!原来还可以这样搞!稍加修改后用同样的原理做了快进噪点的画面效果
[RenPy] 纯文本查看 复制代码 screen skip_indicator():
zorder 100
style_prefix "skip"
frame:
hbox:
spacing 6
text _("正在快进")
text "▸" at delayed_blink(0.0, 1.0) style "skip_triangle"
text "▸" at delayed_blink(0.2, 1.0) style "skip_triangle"
text "▸" at delayed_blink(0.4, 1.0) style "skip_triangle"
on "show" action Play('second_music', 'audio/快进.mp3',fadein=2.0,loop=True)
on "show" action Show("jiasu", dissolve )
on "hide" action Stop('second_music', fadeout=2.0)
on "hide" action Hide("jiasu", dissolve )
其中:
[RenPy] 纯文本查看 复制代码 image guzhang = Movie(play="tv/加速.webm", mask="tv/加速.webm")
screen jiasu:
add "guzhang "
因为考虑到快进时sound和music都会被已有音轨卡断因此新建一个音轨:
[RenPy] 纯文本查看 复制代码 renpy.music.register_channel('second_music', mixer="music", loop=True, stop_on_mute=True, tight=False, file_prefix='', file_suffix='', buffer_queue=True, movie=False)
另外加上:
[RenPy] 纯文本查看 复制代码 define config.skip_sounds = True
define config.skip_delay = 145
就能完美实现了~ |