- This wiki is out of date, use the continuation of this wiki instead
Advance
From FenixWiki
(Difference between revisions)
| Revision as of 10:56, 26 March 2007 (edit) FCR (Talk | contribs) ← Previous diff |
Revision as of 09:43, 13 April 2007 (edit) (undo) 86.136.63.228 (Talk) (→Returns) Next diff → |
||
| Line 7: | Line 7: | ||
| == Returns == | == Returns == | ||
| - | INT : Returns an integer | + | INT : Returns an integer. Returns 1 if successful and 0 if failed. |
| == Parameters == | == Parameters == | ||
Revision as of 09:43, 13 April 2007
Contents |
Definition
INT advance ( INT distance )
Moves a process forward in the direction of its angle.
Returns
INT : Returns an integer. Returns 1 if successful and 0 if failed.
Parameters
INT distance - distance to advance in pixels, not adjusted for resolution
Example
Here is a example on how to use advance.
program example;
global
my_proc;
begin
my_proc = proc(); //create a new process
loop
frame;
end
end
process proc()
begin
loop
advance(3); // advance 3 pixels per frame
frame;
end
end
