Hello. How to separate a mouse click with a mouse click on a button in GDScript? I try to create two boolean state variables (mouse click and button click) and comparing them to do what I need. But I don’t know how to get the state of the button click in func input (event). And using the a signal func on_Button_down leads to confusion
Separate mouse and button click
Post was caught in moderation queue. Please check your email for a confirmation link. Make sure to also check your spam filter if you can't find it.
Can you explain more about what you are trying to accomplish?
I need to do an interactive 3D presentation. There are some 3D object. The main scene is list of 3d objects. Control : mouse left button - changing scene. Each 3d scene should has a button - return to the first scene with list of 3d objects. I wanted to accomplish simple example before the presentation: mouse click counter with Label (show count of left click mouse button) and Button (reset to 0). But if I click Button it the first - increment counter and after reset it to 0.
I create it by on_Button_mouse_entered () and on_Button_mouse_exited () signals and it works how I need but may be is any other way to separate mouse and button clicks
Yes, I was going to suggest using mouse_entered and exited to track if you are above the button and then setting a boolean flag you can check elsewhere. I think that may be an okay solution.