Click on everything but...

Get help using Construct 2

Post » Mon Feb 25, 2013 6:52 pm

Hi guys
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.
Thanks
B
2
Posts: 18
Reputation: 286

Post » Tue Feb 26, 2013 12:00 am

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
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Feb 26, 2013 12:34 pm

Hmmm
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
B
2
Posts: 18
Reputation: 286

Post » Tue Feb 26, 2013 5:15 pm

Nopes :(
You cant invert On Left Button Clicked On condition.
Anyone any ideas?
B
2
Posts: 18
Reputation: 286

Post » Wed Feb 27, 2013 11:19 am

I'm interested in this as well
anyone any ideas?
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Wed Feb 27, 2013 11:39 am

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
mouse is clicked                    Desired result
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Wed Feb 27, 2013 1:32 pm

Yeah that makes perfect sense
Thanks
B
12
S
3
G
1
Posts: 120
Reputation: 1,829


Return to How do I....?

Who is online

Users browsing this forum: Radulepy and 5 guests