This wiki is out of date, use the continuation of this wiki instead

Advance

From FenixWiki

Revision as of 00:22, 16 April 2007 by Sandman (Talk | contribs)
Jump to: navigation, search

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
    // This loop makes this process advance 3 pixels every frame
    Loop
        advance(3); // advance 3 pixels
        frame;
    End
End
Personal tools