-
gamehelp
onClipEvent (enterFrame) {
if (this.hitTest(_root.greencursor) && (Key.isDown(85))) {
play();
_root.greenpoints += 1;
}
if (this.hitTest(_root.redcursor) && (Key.isDown(81))) {
play();
_root.redpoints += 1;
}
}
It works, but how do I make the code so that once one of the cursors hits the target(the this) and gets the += 1, the other one can't. (what happens is if they hit about the same time, they both get the points)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|