EsbenH
05-12-2008, 04:35 PM
Hi All
Im doing a project for uni, and im stuck. I have a little experience with AS3, but not enough to figure this out myself.
My task is to get some circles to move randomly within a certain area. Im imagining using math.random and hitTestObject (if you have any other suggestions they would be most welcome). To be more exact, this picture is what it is all about:
http://farm3.static.flickr.com/2353/2486344684_e16fc6d78b_t.jpg
Im receiving data from another program (lets say Int numbers from 0-100) and i want to use these numbers to decide the speed of the circles, who should move randomly,but within their 'area'. By this i mean that the white circles stay on the black background and vice versa.
If anyone has any concrete solutions, or ideas on how to get this working i would very much appreciate it!
Thanks,
EsbenH
Im doing a project for uni, and im stuck. I have a little experience with AS3, but not enough to figure this out myself.
My task is to get some circles to move randomly within a certain area. Im imagining using math.random and hitTestObject (if you have any other suggestions they would be most welcome). To be more exact, this picture is what it is all about:
http://farm3.static.flickr.com/2353/2486344684_e16fc6d78b_t.jpg
Im receiving data from another program (lets say Int numbers from 0-100) and i want to use these numbers to decide the speed of the circles, who should move randomly,but within their 'area'. By this i mean that the white circles stay on the black background and vice versa.
If anyone has any concrete solutions, or ideas on how to get this working i would very much appreciate it!
Thanks,
EsbenH