有没有可能在Ren'Py中实现splashscreen?

2024-09-29 22:50:27 发布

您现在位置:Python中文网/ 问答频道 /正文

在最新版本的Ren'Py中还可以实现splashscreen吗?我搜索了每一个关于使用喷溅屏的论坛,但是,它们要么过时了,要么不起作用。下面我包括了历史悠久的Ren'pywiki页面的代码片段(在最新版本中不起作用)。我在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

Tags: 文件代码textpy版本官方网站with
2条回答

我想你想在菜单前显示闪屏,对吧?在

如果是,请尝试:

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

希望这有帮助。在

只是拼写问题。屏幕拼写检查。你忘了第三个。防溅屏,不是防溅屏。另外,你不需要带暂停的,只需要使用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

相关问题 更多 >

    热门问题