- This wiki is out of date, use the continuation of this wiki instead
Advance
From FenixWiki
(Difference between revisions)
Revision as of 00:35, 23 April 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Revision as of 11:30, 9 July 2007 (edit) (undo) Sandman (Talk | contribs) Next diff → |
||
Line 5: | Line 5: | ||
'''INT''' advance ( <'''INT''' distance> ) | '''INT''' advance ( <'''INT''' distance> ) | ||
- | Moves | + | Moves the [[process]] [[call]]ing advance() forward in the direction of its [[angle]]. |
== Parameters == | == Parameters == | ||
{| | {| | ||
- | | '''INT''' distance || - distance to advance in [[pixel]]s, not adjusted for [[resolution]] | + | | '''INT''' distance || - distance to advance in [[pixel]]s, not adjusted for [[resolution]]. |
|} | |} | ||
== Returns == | == Returns == | ||
{| | {| | ||
- | | '''INT''' : Returns [[true | + | | '''INT''' : Returns [[true]] if successful and [[false]] if failed. |
|} | |} | ||
== Example == | == Example == | ||
- | Here is a example on how to use advance(). | ||
- | |||
<pre> | <pre> | ||
Program example; | Program example; |
Revision as of 11:30, 9 July 2007
Contents |
Definition
INT advance ( <INT distance> )
Moves the process calling advance() forward in the direction of its angle.
Parameters
INT distance | - distance to advance in pixels, not adjusted for resolution. |
Returns
INT : Returns true if successful and false if failed. |
Example
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