I was wondering what is the best way to make an action, where you click anywhere, but.
I have a layer where my sprites are, and a layer for my UI. I want to place sprites on any click on the first layer, but to skip placing if the click is on the UI layer.
Use "on mouse clicked" UI element sprite
and then right click it and choose "invert"
now your actions will only occur if you don't click a UI element
Develop games in your browser. Powerful, performant & highly capable.
Will invert "On Mouse Clicked on UI" will get all other clicks, or will get when you don't click on UI, in other words every time u don't click?
I think I've tested that but i will again this evening...
Hope it will work
You cant invert On Left Button Clicked On condition.
Anyone any ideas?
I'm interested in this as well
anyone any ideas?
Could you try on Left button is over object & on left mouse button clicked.
(This event if for hud clicked on)
Mouse is over object
mouse is clicked Desired result
mouse is 'not' over object
Yeah that makes perfect sense