mercredi 26 mars 2014

c# how to duplicate a objects within a lis to spwan a diffrent points


Vote count:

0




Currently making a simple game in c# and i have my object appearing in the middle of the screen, now i have made a list for that object but was wondering how do i make the object appear like 10 times ramdomely on the screen? I am guessing a for each loop of some kind?



object1 = new List<Gem>();
object2 = new List<Gem>();


Above is just where i have made a list for that class where the object is stored. So again just trying to figure out how to make this object appear in ramdom postions on the screen x10.


Tanks again for all the help, as you can tell , i am a noob when it comes to programming :) x



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire