Difference between revisions of "3D Space Example.as"
From Organic Design wiki
(Instantiate a star-burst test) |
m |
||
Line 2: | Line 2: | ||
// Instantiate a new 3D-space | // Instantiate a new 3D-space | ||
− | createEmptyMovieClip( 's', | + | createEmptyMovieClip( 's', 1 ); |
initialiseSpace( s ); | initialiseSpace( s ); | ||
s._x = width/2; | s._x = width/2; | ||
Line 8: | Line 8: | ||
// Create a ball | // Create a ball | ||
− | attachMovie( 'ball', 'ball', | + | attachMovie( 'ball', 'ball', 2 ); |
col = new Color( ball ); | col = new Color( ball ); | ||
col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } ); | col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } ); | ||
Line 18: | Line 18: | ||
// Test object | // Test object | ||
− | s.create( [ 0, 0, '', 'starBurst', 10, 0.25, 0,0, | + | s.create( [ 0, 0, '', 'starBurst', 10, 0.25, 0,0,1000 ] ); |
Revision as of 11:14, 19 March 2006
- include "Space.as"
// Instantiate a new 3D-space createEmptyMovieClip( 's', 1 ); initialiseSpace( s ); s._x = width/2; s._y = height/2;
// Create a ball attachMovie( 'ball', 'ball', 2 ); 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,1000 ] );