Creating objects "on the fly"while an app is running
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
alobiuc168 pointsPosted Dec 20, 2004, 6:17 AM EST
schmintan63 pointsPosted Dec 20, 2004, 7:47 AM EST
bilnaadRank #2,169 · 655 pointsPosted Dec 20, 2004, 9:40 AM EST
alobiuc168 pointsPosted Dec 20, 2004, 10:55 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts