Hello,
I've made a game and set an action so that the score increments when two movie clips collide:
onClipEvent (enterFrame) {
if (this.hitTest(_root.sleigh.present)) {
var /:lost = number(/:lost)+1;
}
}
But I'm finding that instead of incrementing once only, it continues to increment all the while the clips are colliding, resulting in the score incrementing by 2 or 3.
Does anyone know a simple way around this?
thanks
ninja : )
I've made a game and set an action so that the score increments when two movie clips collide:
onClipEvent (enterFrame) {
if (this.hitTest(_root.sleigh.present)) {
var /:lost = number(/:lost)+1;
}
}
But I'm finding that instead of incrementing once only, it continues to increment all the while the clips are colliding, resulting in the score incrementing by 2 or 3.
Does anyone know a simple way around this?
thanks
ninja : )