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

Advance

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:57, 22 March 2007 (edit)
Woody (Talk | contribs)

← Previous diff
Revision as of 10:23, 23 March 2007 (edit) (undo)
FCR (Talk | contribs)

Next diff →
Line 1: Line 1:
 +== Definition ==
 +
'''INT''' advance ( '''INT''' distance ) '''INT''' advance ( '''INT''' distance )
Line 6: Line 8:
'''INT''' distance - distance to advance in pixels, not adjusted for resolution '''INT''' distance - distance to advance in pixels, not adjusted for resolution
 +
 +== Example ==
 +
 +Here is a example on how to use advance.
 +
 +<pre>
 +program example;
 +global
 + my_proc;
 +begin
 + my_proc = proc(); //create a new process
 + loop
 + frame;
 + end
 +end
 +
 +process proc()
 +begin
 + loop
 + advance(3);
 + frame;
 + end
 +end
 +</pre>

Revision as of 10:23, 23 March 2007

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

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);
     frame;
   end
end
Personal tools