- This wiki is out of date, use the continuation of this wiki instead
Advance
From FenixWiki
(Difference between revisions)
| Revision as of 13:40, 17 April 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Revision as of 10:32, 18 April 2007 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
| Line 1: | Line 1: | ||
| + | [[Category:functions]] | ||
| + | [[Category:processinteraction]] | ||
| + | |||
| ==Definition== | ==Definition== | ||
| Line 43: | Line 46: | ||
| End | End | ||
| </pre> | </pre> | ||
| - | |||
| - | [[Category:functions]] | ||
Revision as of 10:32, 18 April 2007
Contents |
Definition
INT advance ( <INT distance> )
Moves a process forward in the direction of its angle.
Parameters
| INT distance | - distance to advance in pixels, not adjusted for resolution |
Returns
| INT : Returns 1 if successful and 0 if failed. |
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
// This loop makes this process advance 3 pixels every frame
Loop
advance(3); // advance 3 pixels
frame;
End
End
