|
-
Correct code would be getChildByName("bullet" + n))...
But - using string lookups is really really slow for the processor...you'd be much better off putting the bullets into an array instead of using .name. And if you use array.push(new Bullet()) your bulletcount should stay synched with the array index...eg. bulletArray[10] = bullet10;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|