Hi everyone,
I am new to flash and i just have a quick question about hitTest() function.
this is my code
.
.
.
if (this.hitTest(_root.player)) {
_root.target.gotoAndPlay("boom");
_root.scoreVar++;
}
.
.
now what im tring to do is to increment BY ONE whenever collision occurs but instead when the 2 mc’s colide the counter keeps going al song as i keep my mouse over it.
Is there any way for it to count just once when the collision occurs…
thanks for any input