|
1.
|
|
|
Transforms
|
|
|
|
Transforms
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:8
|
|
2.
|
|
|
A transform can be applied to a displayable to yield another displayable. The built-in transforms are used to control where an object is placed on the screen, while user-defined transforms can cause more complex effects, like motion, zoom, and rotation.
|
|
|
|
A transform can be applied to a displayable to yield another displayable. The built-in transforms are used to control where an object is placed on the screen, while user-defined transforms can cause more complex effects, like motion, zoom, and rotation.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:10
|
|
3.
|
|
|
Transforms can be applied by giving the at clause to the scene and show statements. The following code applies the "right" transform to the eileen happy displayable.::
|
|
|
|
Transforms can be applied by giving the at clause to the scene and show statements. The following code applies the "right" transform to the eileen happy displayable.::
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:15
|
|
4.
|
|
|
Multiple transforms can be applied by separating them with commas. These transforms are applied from left-to-right, with the rightmost transform taking precedence in the case of conflicts. ::
|
|
|
|
Multiple transforms can be applied by separating them with commas. These transforms are applied from left-to-right, with the rightmost transform taking precedence in the case of conflicts. ::
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:21
|
|
5.
|
|
|
A displayable always has a transform associated with it. If no transform is given, the prior transform is used. When the transform is changed, undefined values are taken from the prior transform, or from ``default`` if there is no prior transform.
|
|
|
|
A displayable always has a transform associated with it. If no transform is given, the prior transform is used. When the transform is changed, undefined values are taken from the prior transform, or from ``default`` if there is no prior transform.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:27
|
|
6.
|
|
|
Default Transforms
|
|
|
|
Default Transforms
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:33
|
|
7.
|
|
|
Ren'Py ships with a number of transforms defined by default. These transforms position things on the screen. Here's a depiction of where each default transform will position an image. ::
|
|
|
|
Ren'Py ships with a number of transforms defined by default. These transforms position things on the screen. Here's a depiction of where each default transform will position an image. ::
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:35
|
|
8.
|
|
|
The offscreenleft and offscreenright transforms position images off the screen. These transforms can be used to move things off the screen (remember to hide them afterwards, to ensure that they do not consume resources).
|
|
|
|
The offscreenleft and offscreenright transforms position images off the screen. These transforms can be used to move things off the screen (remember to hide them afterwards, to ensure that they do not consume resources).
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:53
|
|
9.
|
|
|
The transforms are:
|
|
|
|
The transforms are:
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:58
|
|
10.
|
|
|
Centers horizontally, and aligns to the bottom of the screen.
|
|
|
|
Centres horizontally, and aligns to the bottom of the screen.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/transforms.rst:62
|