Mouse movement while Cursor is not in collision with UI

Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.

How do I…

I have a toggle option to switch between mouse(point&Click-Movement and classical TopDownMovemnt with WASD) both included in seperate external events
The movement and the toggle works fine as expected.

I have multiple Layers that are showing or hiding objects depending on interactions, like Pressing “C” to open character window, or Pressing “S” for Skill window or using the linked buttons on the UI Layer that does the same as the buttons.

What is the expected result

i created a globalgroup with all items that are part of the UI Layer and wanted to make sure the movement is only working when the click for movement is not on an UI Related object. so movement with mouse only works while clicking in the free space that is not occupied by buttons, Bars or Statuswindows.

What is the actual result

The movement is still working while clicking on an UI-related object and the player starts moving, for example while pressing a button inside the Character Window

Related screenshots

ExternalEvent for Click2Move:

And if it matters the ExternalEvent for WASD movement:

IDK if this is the only issue but I think you need to put a non-inverted cursor is on UI group condition inside a NOT condition.

If you had 5 objects and the cursor is on 1 object then it’s not be on 4 objects. A NOT condition inverts the result instead of the condition. It kind of makes it an all objects instead of any.

Also, you don’t need the AND condition. All conditions must be true by default. AND is only really used inside an OR condition.

Thanks for the Reply.
i removed the inverted condition, which created the result, that the mouse movement only worked while clicking something from the UI Layer.

it was supposed to work on all or any object that is on UI layer and pressed/clicked. so i am not sure if it makes any diffrence if its any or all at this point.

i removed the AND condition as you mentioned, thanks for the hint.

1 Like