So there’s an array of notch markers that appear on a bar. You have your own little bar that slides across and, when it touches any the notches, you press a key to get a point. The problem is, I want to make it so that when you’re NOT touching any of the notches and you press that same key, you LOSE a point instead.
for (var i:Number = 0; i < hit_marker_array.length; i++)
{
if (hitter.hitTestObject(hit_marker_array[i]))
{
hitter_hitting = “true”;
}
else
{
hitter_hitting = “false”;
}
}
Obviously this doesn’t work because, when ONE of the items in the array is not being touched, the var “hitter_hitting” (temporary name for it, sorry, lol) becomes “false”. All I want to do is make something that checks for whether the hitter is touching ANY of the markers or NONE of them. Any ideas? Thank you.