View Single Post
Old
mcgski
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jul 2011
Location: Forest Hill
Default 12-11-2011, 09:08 AM

I could not figure out a way to instantiate a class object in code per se. For example, if I want to fill a scene with penguins by instantiating them in code and filling an array with these objects, the only way I can see to do this is by adding the penguin to the scene first, then using the object instance.

pseudo code:

class penguin;

array penguins;

penguins [0] = new penguin;
penguins [1] = new penguin;
   
Reply With Quote