Hello again
OK here is the idea
I am spawning a Circle and it does stuff.
Now this circle goes to different points of the screen using random numbers called
[COLOR=Blue]k_posx[/COLOR] and [COLOR=Blue]k_posy. [COLOR=Black]Thats all fine and dandy. But i want to have more that one circle on the screen, so i considered on making an array that contains all of the values like this
circle one, x, y
[/COLOR][/COLOR][COLOR=Blue][COLOR=Black]circle two, x, y
[/COLOR][/COLOR][COLOR=Blue][COLOR=Black]circle three, x, y
(Btw i really get stuck on arrays)
In order to move the circle i use this script:
[/COLOR][/COLOR]
function Move_to() {
for (i=0; i<_root.k_num; i++) {
_root.k_xpos = Math.round(random(530+10));
_root.k_ypos = Math.round(random(380+10));
_root.k_speed = Math.round(random(10)+5);
}
}
which is called after 5 second intervals (not using the setInterval)
How can this script be modified in order to Different create multiple values in an array and How can i get the circles to use the newly created numbers??
Sorry for the long post i am really having trouble thinking this one through
(sorry i was meant to post this is the AS 2 forum)