|
45.
|
|
|
It's actually pretty rare that you'll need to use hide. Show can be used when a character is changing emotions, while scene is used when everyone leaves. You only need to use hide when a character leaves and the scene stays the same.
|
|
|
|
实际上您很少需要用到hide语句。当需要改变角色表情是可以使用show语句,当所有人都离开时可以使用scene语句,只有在角色离开但是还要保留场景(scene)不变的时候才需要使用hide语句。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:282
|
|
46.
|
|
|
Transitions
|
|
|
|
图像过渡(Transitions)
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:288
|
|
47.
|
|
|
Simply having pictures pop in and out is boring, so Ren'Py implements transitions that can make changes to the screen more interesting. Transitions change the screen from what it looked like at the end of the last interaction (dialogue, menu, or transition), to what it looks like after any scene, show, and hide statements.
|
|
|
|
如果只是简单地弹出图片然后消失未免过于单调,所以Ren'Py提供了transitions来让图像在屏幕上的变换更加有趣。图像过渡把屏幕上显示的内容从上一个交互动作(对话、菜单、或过渡)结束时的状态,慢慢转换到下一条scene、show、hide语句运行后的结果。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:290
|
|
48.
|
|
|
The with statement takes the name of a transition to use. The most common one is ``dissolve`` which dissolves from one screen to the next. Another useful transition is ``fade`` which fades the screen to black, and then fades in the new screen.
|
|
|
|
通过with语句在指定使用哪一种过渡效果。最常用的一种是``dissolve``,上一个界面渐渐融化并显示出下一个界面。另外一个比较有用的过渡效果是``fade``,从前一个界面逐渐变黑,再从黑屏逐渐显示下一个界面。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:322
|
|
49.
|
|
|
When a transition is placed after multiple scene, show, or hide statements, it applies to them all at once. If you were to write::
|
|
|
|
当一个过渡效果被至于多个scene、show或hide语句之后时,它将同时作用于所有这些语句,并且只执行一次。如果您这么写::
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:327
|
|
50.
|
|
|
Both the "bg meadow" and "sylvie smiles" would be dissolved in at the same time. To dissolve them in one at a time, you need to write two with statements::
|
|
|
|
“bg meadow”和“sylvie smiles”将会同时融化。如果您想实现先融化一个然后再融化一个的效果,那么您需要使用两个with语句::
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:335
|
|
51.
|
|
|
This first dissolves in the meadow, and then dissolves in sylvie. If you wanted to instantly show the meadow, and then show sylvie, you could write::
|
|
|
|
最先浮现出来的是草地背景,然后sylvie才会浮现出来。如果您想要草地背景瞬间就显示出来,然后sylvie再慢慢浮现出来,您可以这样写::
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:345
|
|
52.
|
|
|
Here, None is used to indicate a special transition that updates Ren'Py's idea of what the prior screen was, without actually showing anything to the user.
|
|
|
|
这里的None是一个特殊的过渡效果,它的作用是在不向用户展示任何实际内容的前提下,告诉Ren'Py前一个界面是什么。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:355
|
|
53.
|
|
|
Positions
|
|
|
|
位置(Positions)
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:360
|
|
54.
|
|
|
By default, images are shown centered horizontally, and with their bottom edge touching the bottom of the screen. This is usually okay for backgrounds and single characters, but when showing more than one character on the screen it probably makes sense to do it at another position. It also might make sense to reposition a character for story purposes.
|
|
|
|
图像默认被放置在水平居中的位置,并且图像的底部边缘与屏幕的底部边缘对齐。这对背景或单个角色来说没什么问题,但当我们想要在屏幕上显示多个角色时,可能就需要把它们放置在另外的位置上,另外根据剧情需要也可能需要移动角色到不同位置。
|
|
Translated and reviewed by
Hanming Wu
|
|
|
|
Located in
../../source/quickstart.rst:362
|