How do I can ignore invisible object on mouseover?

Get help using Construct 2

Post » Sat Dec 13, 2014 5:45 pm

I have multiple objets in same position, each on different layer. Only one layer is visible, rest invisible. My question is why mouseover affect even on invisible layers. Can I avoid that, any ideas?

example:
layer1 invisible object1
layer2 visible -want to create object2 if cursor isn't over object1(and should work becouse there is no object1 on that layer, but nothing happened)
B
4
Posts: 7
Reputation: 214

Post » Sat Dec 13, 2014 7:29 pm

Add the condition "object | Is visible" to your mouseover condition
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sun Dec 14, 2014 12:02 pm

@7Soul Another example:

layer1 invisible object
layer2 visible object

-destroy object if(mouseover object & object is visible)

Something like this destroy all objects, even this one on invisible layer.
B
4
Posts: 7
Reputation: 214

Post » Sun Dec 14, 2014 3:27 pm

Solved

Just added variable which set which layer is visible. ex. activeLayer

-activeLayer = 2

layer1 invisible object
layer2 visible object

-destroy object if(mouseover object & object is on layer "layer"&activeLayer)
B
4
Posts: 7
Reputation: 214

Post » Mon Dec 15, 2014 12:07 am

So this didn't work?

Image
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Mon Dec 15, 2014 12:37 am

Unfortunately not. Maybe this capx will show what I meant.
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 7
Reputation: 214

Post » Mon Dec 15, 2014 12:43 am

Here you go.
You do not have the required permissions to view the files attached to this post.
B
31
S
10
G
2
Posts: 310
Reputation: 5,516

Post » Mon Dec 15, 2014 3:49 pm

Huh, seems like objects in invisible layers are not considered as invisible. Not sure if this is the intended behavior... let's ask @Ashley
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, RobertMKD, Yahoo [Bot] and 1 guest