Need help with Anticheat on Maze

Subscribe to Need help with Anticheat on Maze 7 posts

Sign in to reply


 
avatar for croutonicus croutonicus 23 posts
Flag Post

I’m making a maze game and so far i have made it almost impossible to cheat.
*No rightclicking
*No forward or play
At the moment i’m trying to eliminate left clicking. Could somebdy help me with the code please.

I need the code to make this happen: When the left mouse button is pressed down or released it will remove the finish from the maze. The finishes instance name is “finish”

Thanks for the help.

 
avatar for croutonicus croutonicus 23 posts
Flag Post

If anyone needs any more info or a better explanation let me know

 
avatar for MaToMaStEr MaToMaStEr 628 posts
Flag Post

add a Mouse Listener, and catch the left clicks. when it’s clicked, make the finish invisible… and make it visible again when the button is up.

var mouseLis:Object = new OBject();
Mouse.addListener(mouseLis);

mouseLis.onMouseDown = function(){
    finish._visible=false;
}
mouseLis.onMouseUp = function(){
    finish._visible=true;
}

add that code on the first lines of the frame where your maze is.

 
avatar for Varilian Varilian 92 posts
Flag Post
Originally posted by MaToMaStEr:

add a Mouse Listener, and catch the left clicks. when it’s clicked, make the finish invisible… and make it visible again when the button is up.

var mouseLis:Object = new OBject();
Mouse.addListener(mouseLis);

mouseLis.onMouseDown = function(){
    finish._visible=false;
}
mouseLis.onMouseUp = function(){
    finish._visible=true;
}

add that code on the first lines of the frame where your maze is.

Off topic, but that’s pretty clever : )
I don’t think I’ve ever seen that one before.

 
avatar for croutonicus croutonicus 23 posts
Flag Post

Very clever indeed it’s worked perfectly thankyou very much!

 
avatar for croutonicus croutonicus 23 posts
Flag Post

Very clever indeed it’s worked perfectly thankyou very much!

 
avatar for MaToMaStEr MaToMaStEr 628 posts
Flag Post

glad I could help
it was you idea though,,, i just coded it ;)

Sign in to reply