I want to check if my character is hitting any of the items in an array (true) and if he isn't (false). right now the boolean is in a for loop so it returns one "true" and multiple "false" statements each time the program updates. I just want one return, true if the character is hitting a movie clip in the array, and false if he isn't. Here's the code:
for(var i:int = 0; i<steps.length; i++){
if(steps[i].hitTestPoint(hero.x,hero.y+hHeight/2, true)){
onSteps = true;
}else{
onSteps = false;
}
}