disable DragDrop when sprite is invisible

Get help using Construct 2

Post » Thu Nov 05, 2015 7:50 am

hello!
i have sprites on different layers that i want to drag and drop only when they are visible. now if i am accidentally over an invisible sprite it is still being dragged.
i dont know where and how to put the condition. is there a way to make an entire Layer not active?
thank you
B
5
Posts: 18
Reputation: 261

Post » Thu Nov 05, 2015 8:44 am

sprite is invisible --> set drag and drop disabled
sprite is visible --> set drag and drop enabled
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Thu Nov 05, 2015 8:52 am

System -> Layer is Visible (then use the name of your layer) -> set objects drag and drop on
Else -> set objects drag and drop off
B
124
S
43
G
41
Posts: 849
Reputation: 28,235

Post » Thu Nov 05, 2015 10:17 am

thank you , but i still need some help....
i found out how to disable the drag &drop on a single sprite. in the second post you mention "set objects"
can't find it!
I added an event: onTouch --> System--Layer "some name" is visible--> add action:? where is "set objects"?

thanks
B
5
Posts: 18
Reputation: 261

Post » Thu Nov 05, 2015 10:24 am

jiga wrote:thank you , but i still need some help....
i found out how to disable the drag &drop on a single sprite. in the second post you mention "set objects"
can't find it!
I added an event: onTouch --> System--Layer "some name" is visible--> add action:? where is "set objects"?

thanks


The 'set objects' refers to the object with the drag and drop behavior.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,412
Reputation: 59,508

Post » Fri Nov 06, 2015 1:54 pm

just do what i already said, its easier man
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Fri Nov 06, 2015 1:55 pm

if u want a simple thing
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, dop2000, kellehk, Yahoo [Bot] and 27 guests