I know it would be like this:
for(t = 0; t < 100; t++){
sands[t] = new sand();
sands[t].setpos(t,100);
sands[t].fall();
}
I want something kinda like that that will make a "object" 100 times then do the functions for the class.
Like I though that would make 100 peices of sand set their position to
x = 't' and y = 100
then make them all fall. And yes I have made the fall and setpos functions already and they do work for one at a time classes.
This post has been edited by azjherben: 25 March 2009 - 02:24 PM

New Topic/Question
Reply




MultiQuote






|