Hi,
I want to check if a mc has hit a duplicated mc, what is needed on the below script as it doesnt appear to work? I believe its something about check for part of a name, ie looking for bullet when bullet1, bulllet2, bullet3 etc have been duplicated.
Code:
targetmc.onEnterFrame = function() { this._y += _root.speed; if (this._y>=700) { this._x = random(800); this._y = 50; } if (this.hitTest(String(_name) != “bullet”)) { _root.score++; this._x=random(800) this._y=-100 }};
Cheers
Steve