Hi, for my research lab, I’m trying to make an animation with 8 dots moving randomly and continuously, all of which would avoid multiple collisions by moving away from the other dots as soon as they touch or nearly touch each other. I’ve consulted the awesome tutorials on kirupa but have trouble using/incorporating the sample functions
“[FONT=Times New Roman][SIZE=2]dirChanger” or “[FONT=Times New Roman]moveAway” from the tutorials[/FONT][/SIZE][/FONT]
[FONT=Times New Roman][FONT=Times New Roman][SIZE=2]I have attached my flash 8 .fla file[/SIZE][/FONT][/FONT]
[FONT=Times New Roman][FONT=Times New Roman][SIZE=2]I’m stuck about what to put after “[/SIZE][/FONT][/FONT][FONT=Times New Roman][FONT=Times New Roman][FONT=Times New Roman][SIZE=2]if (temp_A.hitTest(temp_B)) {” to get the dots to move apart once they hit each other[/SIZE][/FONT]
Any tips would be SO appreciated b/c I’m a designer/artist and not really a programmer.[/FONT][/FONT]