4
Reply

creating objects "on the fly"while an app is running

schmintan

schmintan

Dec 20 2004 10:55 AM
2.7k
in c#, how do i create a user defined amount of an object? let me explain. im writing a simple game. rather than specify in the code that there will be 5 bad guy objects, i would like the user to decide " hey, i think il create 7 bad guys today", and the computer will create 7 bad guy objects. now i dont know how to do this.im sure it involves a loop, but after that, im stuck. any ideas

Answers (4)