I am not that great at scripting, basicly because i just got into it, but i was trying to make a flash game just for fun. I got most of it working fine. I got the instructions out of macworld (its a magazine) but theres a part in them that i do not understand. It tells me to type in:
function testCollision() {
for (i=0; i<obstacle_array.length; i++) {
if (me_mc.hitTest(obstacle_array*)) {
//collision occurs; do something
}
}
}
I think by haveing " //collision occurs; do something" in there they want me to add a script that i want to make it do what i want. But the problem is i dont knwo what scrip i need to make the game just stop and start over?!? So if anyone could help me i would greatly appreciate it. Thanx in advance! if you want a copy of the file let me know and ill add it in here.