hello all,
I am new to max and have been away from programming for a while, just bought blitzmax and think it is wonderful.
I have stumbled upon this:
can I have an array of objects?
for example I have a "circle" object ( using william ngan's circle intersection excellent example) and would like to make some circles using a loop like this:
For t=1 To 10
Local Circ[t]:Circle = Circle.create(Rnd(300),Rnd(300) , 30)
Next
but this is not possible.
this ofcourse works fine:
Local Cir2:Circle = Circle.create(100 , 100 , 50)
but I would like to be able to go through my circle collection and have a "name" for each one of them.
I hope I am making my question clear.
thanks very much in advance,
nice to see you all.
aristides.
I am new to max and have been away from programming for a while, just bought blitzmax and think it is wonderful.
I have stumbled upon this:
can I have an array of objects?
for example I have a "circle" object ( using william ngan's circle intersection excellent example) and would like to make some circles using a loop like this:
For t=1 To 10
Local Circ[t]:Circle = Circle.create(Rnd(300),Rnd(300) , 30)
Next
but this is not possible.
this ofcourse works fine:
Local Cir2:Circle = Circle.create(100 , 100 , 50)
but I would like to be able to go through my circle collection and have a "name" for each one of them.
I hope I am making my question clear.
thanks very much in advance,
nice to see you all.
aristides.