Topic: Game Programming /
Help with anti-cheat code
http://www.kongregate.com/games/Mascimo/precision-click
I had it with a highscore board, but I had to delete it because I found out that you could hack it with the tab key.
The game has several frames with the stop(); action on them. I tried using the following code:
onEnterFrame = function () {
if (Key.isDown(“<tab>”)) {
gotoAndStop(3);
}
};
But apparently, it made the stop() action invalid, and the frame goes right away, doesn’t stop.
Any ideas?
|