Difference between revisions of "3D Space Example.as"
From Organic Design wiki
m |
m |
||
Line 4: | Line 4: | ||
createEmptyMovieClip( 'test', 1 ); | createEmptyMovieClip( 'test', 1 ); | ||
initialiseSpace( test ); | initialiseSpace( test ); | ||
− | test._x = width/2; | + | //test._x = width/2; |
− | test._y = height/2; | + | //test._y = height/2; |
// Per frame | // Per frame |
Revision as of 11:44, 19 March 2006
- include "Space.as"
// Instantiate a new 3D-space createEmptyMovieClip( 'test', 1 ); initialiseSpace( test ); //test._x = width/2; //test._y = height/2;
// Per frame function reduce() { now = new Date(); time = now.getTime(); for ( var i = 0; i < allSpaces.length; i++ ) if ( allSpaces[i].active ) allSpaces[i].frame(); }
// Test object test.create( [ 0, 0, , 'torus', 5, 200, 20 ] );