How do I (Not moving object from another layer)

Get help using Construct 2

Post » Tue Sep 23, 2014 2:37 am

Hello guys , I would like to know how to fix this problem : when I create 2 layer and has an object with drag and drop (layer 0 ) for example, and I go to another layer , and move where the object would be the object of layer that is behind moves . How can I fix this ?
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Tue Sep 23, 2014 2:53 am

English your first language? If so, please rewrite that question. If not, sorry but I can't understand the question.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Tue Sep 23, 2014 3:02 am

with the example to understand better, when the object is created even if he is behind the layer , it is moved .

TEST.capx
You do not have the required permissions to view the files attached to this post.
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Tue Sep 23, 2014 4:24 am

OK let me try and see if im understanding correct.

You have two layers.
an object on layer 1.
And an object on layer 2.

you want only layer 1 to be drag and drop when on layer 1, and NOT the layer two object?

if that is what you are asking.

My advice:
create a global variable "activeLayer"

if object is on active layer
Enable drag and drop.
Else
Disable drag and drop.
B
28
S
8
G
1
Posts: 226
Reputation: 2,865


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, GrogIsGood, plinkie, rayolf and 7 guests