为了账号安全,请及时绑定邮箱和手机立即绑定

是否可以在 Ren'Py 中实现启动画面?

是否可以在 Ren'Py 中实现启动画面?

PIPIONE 2021-06-22 16:28:50
是否仍然可以在最新版本的 Ren'Py 中实现启动画面?我搜索了所有关于使用闪屏的论坛;然而,它们要么已经过时,要么不起作用。下面我包含了来自历史悠久的 Ren'Py wiki 页面的代码片段(在最新版本中不起作用)。我在 Ren'Py 网站上找不到任何其他官方文档。此时,我有些绝望。我怎么能做到这一点?label splashcreen:  scene black  with pause (1.0)  show text "splash text" with dissolve  with pause (2.0)  hide text with dissolve  with pause (1.0)return
查看完整描述

2 回答

?
慕的地10843

TA贡献1785条经验 获得超8个赞

这只是拼写问题。检查闪屏的拼写。你忘记了第三个's'。启动画面,而不是启动画面。此外,您不需要 with pause,只需使用 pause。这是具有适当更改的代码。我在最新版本的 Ren'Py (7.3.2) 上进行了测试。


label splashscreen:

     scene black

     pause 1.0


     show text "splash text" with dissolve

     pause 2.0


     hide text with dissolve

     pause 1.0


     return


查看完整回答
反对 回复 2021-06-29
?
qq_遁去的一_1

TA贡献1725条经验 获得超7个赞

我假设您想要菜单之前的启动画面,对吗?


如果是这样,请尝试:


label splashscreen: # create a label for your splashscreen


    play music mysong # This is optional

    scene black

    with Pause(5) # You can change the pause time


    show text "Lorem Ipsum..." with dissolve

    with Pause(5)

    hide text with dissolve

    with Pause (1)

    show text "My" with dissolve # You can change this to an image if you have one

    with Pause(6) # This pauses the current shown text

    hide text with dissolve

    with Pause(2)


return # And of course the Return will take you to the main menu screen

希望这可以帮助。


查看完整回答
反对 回复 2021-06-29
  • 2 回答
  • 0 关注
  • 219 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号