Difference between revisions of "3D Space Example.as"
From Organic Design wiki
m |
(Change create() format) |
||
Line 2: | Line 2: | ||
#include "Space.as" | #include "Space.as" | ||
− | // Instantiate a new 3D-space | + | // Instantiate a new 3D-space (works like createMovieClip) |
− | + | createEmptySpace( 'test', 1 ); | |
− | |||
test._x = width/2; | test._x = width/2; | ||
test._y = height/2; | test._y = height/2; |
Revision as of 05:34, 22 March 2006
Mouse.hide();
- include "Space.as"
// Instantiate a new 3D-space (works like createMovieClip) createEmptySpace( 'test', 1 ); 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', 6, 200, 5000 ] );