actionscript 2 - How to disable a HIT area in AS2? -
how disable hit area (a movieclip instance name "hit") in as2?
please note don't want hide hit area after hitted. needed code disable or remove instance name other objects cannot hit again.
if want instance c1
disabled
after being touched, can do:
c1.onenterframe = function():void { if (this.hittest(anothermovieclip)) { delete this.onenterframe; } }
the hittest
can't occur after onenterframe
function deleted
.
Comments
Post a Comment