Difference between revisions of "3D Space Example.as"

From Organic Design wiki
(test if its calling it)
(Instantiate a star-burst test)
Line 3: Line 3:
 
// Instantiate a new 3D-space
 
// Instantiate a new 3D-space
 
createEmptyMovieClip( 's', 0 );
 
createEmptyMovieClip( 's', 0 );
initialiseSpaces( s );
+
initialiseSpace( s );
 
s._x = width/2;
 
s._x = width/2;
 
s._y = height/2;
 
s._y = height/2;
Line 11: Line 11:
 
col = new Color( ball );
 
col = new Color( ball );
 
col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } );
 
col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } );
 +
 +
// Per frame
 +
function reduce() {
 +
s.frame();
 +
}
 +
 +
// Test object
 +
s.create( [ 0, 0, '', 'starBurst', 10, 0.25, 0,0,0 ] );

Revision as of 10:54, 19 March 2006

  1. include "Space.as"

// Instantiate a new 3D-space createEmptyMovieClip( 's', 0 ); initialiseSpace( s ); s._x = width/2; s._y = height/2;

// Create a ball attachMovie( 'ball', 'ball', 1 ); col = new Color( ball ); col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } );

// Per frame function reduce() { s.frame(); }

// Test object s.create( [ 0, 0, , 'starBurst', 10, 0.25, 0,0,0 ] );