I'm making a maze game but I want a code that makes it start over when you RIGHT click so it is cheat proof.ActionScript?
i made a game just like this and had the same problem i finally cam up with a code... it was
_root.onEnterFrame = function() {
if (Key.isDown(2)) {
if (!this.wasDown) {
this.wasDown = true;
rightClick();
}
rightClickDown();
} else if (this.wasDown) {
this.wasDown = false;
rightClickUp();
}
};
function rightClickDown() {
trace(';you right clicked!';)
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment