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

是否仍然可以在最新版本的 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


PIPIONE
浏览 220回答 2
2回答

慕的地10843

这只是拼写问题。检查闪屏的拼写。你忘记了第三个'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

qq_遁去的一_1

我假设您想要菜单之前的启动画面,对吗?如果是这样,请尝试: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希望这可以帮助。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python