- This wiki is out of date, use the continuation of this wiki instead
 
Advance
From FenixWiki
Contents | 
[edit] Definition
INT advance ( <INT distance> )
Moves the process calling advance() forward in the direction of its angle.
[edit] Parameters
| INT distance | - distance to advance in pixels, not adjusted for resolution. | 
[edit] Returns
| INT : Returns true if successful and false if failed. | 
[edit] 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
| Processinteraction Functions | |
| • Advance() • Collision() • Exists() • Get_angle() • Get_dist() • Get_id() • Let_me_alone() • Signal() • Xadvance() • | |
