Help with mouseclick

How do you make it so when you click a button 2 times it does something?

You can set a project variable to 0, and change it by 1 everytime a button is clicked, and do something if it’s equal to 2, or, if you want to do everything in one script, put this in the mouse click script:

try{
var i=doubleClick;
// Code for double click goes here
alert("Clicked more than once");
}catch(e){
// Code for one click goes here
alert("Clicked once");
}
doubleClick="<>";