PDA

View Full Version : Make a Cheater Lose


ManEaterGames
11-12-2007, 02:51 AM
Hi,

I'm starting to make a game when you gota move your mouse across obstacles, and get to the goal, but they can't touch the walls. :)

But theres one thing, CHEATERS, how would I make it so when they right click and drag theyre mouse to the goal, and try to win, they lose, and I make a screen pop up saying "CHEATER" or something. :p

CarMan1390
11-12-2007, 07:33 AM
You could create an MC for the left click and give it these actions:
onClipEvent (enterFrame) {
if (Key.isDown(1)) {
this._parent.gotoAndStop(the lose frame);
}
}
And for the right click, put these actions on the first frame of your game:
var NoMenu:ContextMenu = new ContextMenu ();
NoMenu.hideBuiltInItems();
this.menu = NoMenu;
And that's it!

onepiecerulz
01-26-2008, 09:17 PM
u forgot the alt trick.

CybeastFalzar
04-03-2008, 03:56 PM
;);)pssssst! u forgot the hold down mouse trick!:D:)

CarMan1390
04-03-2008, 05:41 PM
;);)pssssst! u forgot the hold down mouse trick!:D:)
No I didn't. This code prevents that:
onClipEvent (enterFrame) {
if (Key.isDown(1)) {
this._parent.gotoAndStop(the lose frame);
}
}