|
| Jason Davisson |
Post
#1
|
|
Newbie Group: Members Posts: 7 Joined: 9-May 07 Member No.: 1,143 |
i
have created a loop that will allow me to create an object3d more than
once by using a counter. i want this counter to somehow be used in the
name of the object3d.
var i = 1; var Name+i = new Pyramid( 40, 40, 40); i know this is not right. i would like to dynamicaly change the object called each time it loops to create soemthing like this. first run, var Name1 = new Pyramid( 40, 40, 40); second run, var Name2 = new Pyramid( 40, 40, 40); third run, var Name3 = new Pyramid( 40, 40, 40); how do i get this effect with a dynamic name in a loop so I can add several objects, transform them, and offset them, all from within a loop? This post has been edited by Jason Davisson: Yesterday, 06:38 PM |
| Rafajafar |
Post
#2
|
|
Newbie Group: Members Posts: 1 Joined: 4-June 07 Member No.: 1,220 |
i have created a loop that will allow me to create an object3d more than once by using a counter. i want this counter to somehow be used in the name of the object3d. var i = 1; var Name+i = new Pyramid( 40, 40, 40); i know this is not right. i would like to dynamicaly change the object called each time it loops to create soemthing like this. first run, var Name1 = new Pyramid( 40, 40, 40); second run, var Name2 = new Pyramid( 40, 40, 40); third run, var Name3 = new Pyramid( 40, 40, 40); how do i get this effect with a dynamic name in a loop so I can add several objects, transform them, and offset them, all from within a loop? var Name:Array = new Array(); loop on i { Name[i] = new Pyramid(arguments); } |
| Lo-Fi Version | Time is now: 18th July 2007 - 08:55 AM |