scripting:reference:cutscenes:caption
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting:reference:cutscenes:caption [2012/04/06 00:09] – mit | scripting:reference:cutscenes:caption [2025/05/28 16:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| 3 : Text \\ | 3 : Text \\ | ||
| 4 : Flags \\ | 4 : Flags \\ | ||
| - | 5 : Start Time \\ | + | 5 : Start Time (Seconds)\\ |
| - | 6 : Fade In End Time \\ | + | 6 : Fade In End Time (Seconds)\\ |
| - | 7 : Fade Out Start Time \\ | + | 7 : Fade Out Start Time (Seconds)\\ |
| - | 8 : Fade Out End Time \\ | + | 8 : Fade Out End Time (Seconds)\\ |
| '' | '' | ||
| ===== Member Functions ===== | ===== Member Functions ===== | ||
| Line 29: | Line 29: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | Here is a simple example demonstrating captions - It displays a bit of text from 10 to 18 seconds, then a different bit from 30 to 38 seconds. Note that we can use different methods to set the fade in and out times - which to use is mostly a matter of preference. | ||
| + | |||
| + | < | ||
| + | section( 1 ) | ||
| + | { | ||
| + | caption = Caption( 0.5, 0.65, "This is a rock", 1, 10, 12, 16, 18 ); | ||
| + | |||
| + | caption = Caption( 0.5, 0.65, "but this is a special rock", 1 ); | ||
| + | caption.FadeIn( 30, 32 ); | ||
| + | caption.FadeOut( 36, 38 ); | ||
| + | } | ||
| + | </ | ||
scripting/reference/cutscenes/caption.1333670969.txt.gz · Last modified: (external edit)
