1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<html><head><title>renpy/doc/reference/functions/Movie - Ren'Py</title><link href="../../shared.css" rel="stylesheet"><link href="../../monobook.css" rel="stylesheet"><link href="../../common.css" rel="stylesheet"><link href="../../monobook2.css" rel="stylesheet"><link href="../../docs.css" rel="stylesheet" /></link></link></link></link></head><body><div id="bodyContent">
<p class="docnav"><a href="../../index.html">documentation index</a> ◦ <a href="../Reference_Manual.html">reference manual</a> ◦ <a href="../Function_Index.html">function index</a></p><p><a id="Movie" name="Movie"></a></p>
<h1><span class="mw-headline">Movie</span></h1>
<p><span id="Movie" /></p>
<table>
<tr>
<td valign="top">Function:</td>
<td valign="top"><b><strong class="selflink">Movie</strong></b></td>
<td valign="top">(fps=24, style='default', **properties):</td>
</tr>
</table>
<div class="renpy-doc">
<p>This is a displayable that displays the current movie. In general, a movie should be playing whenever this is on the screen. That movie should have been started using <a href="../../reference/functions/renpy.movie_start_displayable.html" title="renpy/doc/reference/functions/renpy.movie start displayable">renpy.movie_start_displayable</a> before this is shown on the screen, and hidden before this is removed.</p>
<p><i>fps</i> - The framerate that the movie should be shown at.</p>
</div>
<p><a id="Example" name="Example"></a></p>
<h2><span class="mw-headline">Example</span></h2>
<pre>
<span class="kwa">init</span><span class="sym">:</span>
<span class="kwa">image</span> movie <span class="sym">=</span> <span class="kwd">Movie</span><span class="sym">()</span>
<span class="kwa">show</span> movie <span class="kwa">at</span> <span class="kwd">Position</span><span class="sym">(</span>xpos<span class="sym">=</span><span class="num">420</span><span class="sym">,</span> ypos<span class="sym">=</span><span class="num">25</span><span class="sym">,</span> xanchor<span class="sym">=</span><span class="str">'left'</span><span class="sym">,</span> yanchor<span class="sym">=</span><span class="str">'top'</span><span class="sym">)</span>
<span class="kwa">show</span> eileen happy
$ renpy<span class="sym">.</span><span class="kwd">movie_start_displayable</span><span class="sym">(</span><span class="str">'Eisenhow1952.mpg'</span><span class="sym">, (</span><span class="num">352</span><span class="sym">,</span> <span class="num">240</span><span class="sym">))</span>
e <span class="str">"Ren'Py can even overlay rendered images on top of a movie,</span>
<span class="str"> although that's more taxing for your CPU."</span>
e <span class="str">"It's like I'm some sort of newscaster or something."</span>
$ renpy<span class="sym">.</span><span class="kwd">movie_stop</span><span class="sym">()</span>
<span class="kwa">hide</span> movie
</pre>
<p><br /></p>
<div class="visualClear" />
<hr /><p class="docnav"><a href="../../index.html">documentation index</a> ◦ <a href="../Reference_Manual.html">reference manual</a> ◦ <a href="../Function_Index.html">function index</a></p></div>
</body></html>
|