Actually I can combine two "if" codes. But I'm just to lazy to!
Can anybody help?
1 person found this helpful
I've looked at this and read it twice and have no idea what the problem is.
You ask, "What's the problem?" and then don't say what the problem is. And this is really less than clear, "but if I shoot two fireballs together, it starts to attack more than once from the next."
And what does this mean, "I made a proccessor, named proccessor2, ( there is a proccessor1, of courese)"?
Generally the way to get help on unanswered questions is to post back the work you have done in the interim that has helped you make some progress in better understanding the situation or to offer up something else you thought of.
But if you are getting multiple traces then that means your must have more things in _root.proccessor2.enemies than you thought. Trace that out just inside your loop:
trace("inspecting proccessor2.enemies "+_root.proccessor2.enemies[i]);
And see what that says.
And if you are troubled by the repeating of 2 then that means that your second hit test is coming back true each time.
proccessor is something like the one you put in the timeline ( I know it isn't a good way )