Clicking through message box

For questions about using Classic.

Post » Thu Mar 03, 2011 11:31 am

Hi, got a simple problem - when I call up a message box (with or without individual ID), and click on the message box button while it is over one of my menu buttons, the click registers for both buttons. Is there a way to prevent this?

It only happens to the message box further down in the event list - the upper one doesn't have this problem. I tried ELSE but it just reverses the problem.

I've tried adding a "message box is open" flag, and setting it to 1 when calling a message box and zero once a message box button is pressed, and setting that as a condition for the menu buttons, but still doesn't work.

I'm probably missing something simple - thanks for any help.
B
9
S
2
G
3
Posts: 75
Reputation: 1,964

Post » Thu Mar 03, 2011 1:27 pm

Why not put it further up on the event list then?
If all else fails, you can make a pv called msgboxgettingclicked
On msgbox clicked
Set it to 1

On mouse button released set it to 0

Add a condition to the menu button to make sure it is 0
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Mar 03, 2011 2:09 pm

Thanks for the reply. The 2nd message box event is directly below the 1st message box event, so if I move the 2nd up the problem then applies to the 1st.

I tried a similar idea to your second idea already, but not with the mouse button released as a condition and as a global, not private, variable. I'll try that. Thanks for the help.
B
9
S
2
G
3
Posts: 75
Reputation: 1,964

Post » Thu Mar 03, 2011 3:23 pm

I scrapped the message boxes and made my own using panels and text on a separate layer. Works fine and gives me more control.
B
9
S
2
G
3
Posts: 75
Reputation: 1,964


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests