I cannot seem to get a hitTest with multiple objects to work...
What am I doing wrong?
var platforms: Array = ["platform1", "platform2"];
for (var i: int = 0; i < platforms.length; i++) {
if (player.hitTestObject(background01.platforms[i])) {
playergravity = 0;
}
}
error is term is undefined and has no properties