https://wiki.bennugd.org/index.php?title=Fli_size&feed=atom&action=history
Fli size - Revision history
2024-03-28T23:33:30Z
Revision history for this page on the wiki
MediaWiki 1.36.2
https://wiki.bennugd.org/index.php?title=Fli_size&diff=10813&oldid=prev
Kloppix at 16:45, 27 July 2012
2012-07-27T16:45:14Z
<p></p>
<p><b>New page</b></p><div>[[Category:functions]]<br />
[[Category:fli]]<br />
[[Category:mod_flic]]<br />
<br />
==Definition==<br />
'''INT''' fli_size ( <'''INT''' fli_id> , <'''INT''' size> )<br />
<br />
Changes the [[size]] of the fli/flc animation loaded with [Fli_start]](). If more properties need to be changed, you can use [[Fli_params]]() instead.<br />
<br />
== Parameters ==<br />
{|<br />
| '''INT''' fli_id || - The handle id of the fli/flc file loaded with [[Fli_start]]().<br />
|-<br />
| '''INT ''' size || - Change the size.<br />
|}<br />
<br />
== Returns ==<br />
'''INT''' : Success<br />
{|<br />
| 0 || - Changing the parameters failed, i.e. some error occurred.<br />
|-<br />
| 1 || - Changing the parameters was sucessfull.<br />
|}<br />
<br />
== Example ==<br />
<pre><br />
// import modules<br />
IMPORT "mod_say";<br />
IMPORT "mod_debug";<br />
IMPORT "mod_proc";<br />
IMPORT "mod_grproc";<br />
IMPORT "mod_map";<br />
IMPORT "mod_key";<br />
IMPORT "mod_video";<br />
IMPORT "mod_screen";<br />
IMPORT "mod_flic";<br />
<br />
<br />
GLOBAL<br />
<br />
int fli_file1;<br />
<br />
PRIVATE<br />
<br />
PROCESS main ();<br />
<br />
PRIVATE<br />
int rewind_status;<br />
int move_status;<br />
int info_status;<br />
int fli_angle=0;<br />
int param_status=0;<br />
<br />
BEGIN<br />
<br />
set_mode(640,480,16);<br />
<br />
// fli_size(int fli_id, int size);<br />
param_status=fli_size(fli_file1, 50);<br />
<br />
say("param_status: "+param_status);<br />
<br />
WHILE (NOT key(_esc))<br />
<br />
IF (frame_fli()==0) <br />
// rewind the fli file <br />
rewind_status=reset_fli(); <br />
END <br />
<br />
FRAME;<br />
END<br />
<br />
// stop the fli file<br />
end_fli();<br />
<br />
END<br />
<br />
</pre><br />
<br />
Used in example: [[Frame_fli]](), [[End_fli]](), [[Reset_fli]](), [[say]](), [[key]]()<br />
<br />
== See also ==<br />
<br />
The related functions: [[Fli_move]](), [[Fli_angle]](), [[Fli_flags]](), [[Fli_z]]().<br />
<br />
{{Moduledocbox<br />
| module = Mod_flic<br />
}}</div>
Kloppix