How do I stop mouse click running over

Get help using Construct 2

Post » Sun Apr 06, 2014 2:22 pm


I'm relatively new to Construct 2 but have created a game with a couple of layouts. I'm coming across a problem where I have a mouse click event on the main game to go back to the main menu. The text field for this is located in the same position as another text field on the menu screen which acts as a link to some instructions. When I click the text to go back to the menu field, I can't stop it registering the click on the menu page and instantly loading up the instruction layout.

How do I stop the system registering the mouse click after the first time?


Posts: 1
Reputation: 177

Post » Sun Apr 06, 2014 6:19 pm

I sometimes add a global variable called "User_Can_Click" with 0 = no and 1 = yes.

After the user clicks on an object (and also check that User_Can_Click=1), set User_Can_Click = 0.

Then, have an event somewhere in your Event Sheet that says "Every .25 seconds->Set User_Can_Click = 1"

That little .25 seconds will be enough that your click won't go through to multiple objects and the user won't notice.
Posts: 312
Reputation: 8,530

Return to How do I....?

Who is online

Users browsing this forum: Proxymity and 4 guests