How do I disable sprites in bottom layers?

Get help using Construct 2

Post » Tue Jun 03, 2014 11:16 am

Hi guys.

I'm making a game that have a store to buy some items. I'm using like a tab system to have diferent pages with diferent object types.

My problem is when i hide a layer to change tab, and try to buy something i click on the object of the first layer.

How i can disable this sprites from the bottom layer?
I already try to put my sprite on top when is created but it still not work.

Thanks
B
11
S
3
Posts: 39
Reputation: 814

Post » Tue Jun 03, 2014 11:35 am

Lock the layer.
lock layer.JPG


Edit and if you mean ingame...

THen put all sprite functionality in groups and disable group
disaple layers.JPG
You do not have the required permissions to view the files attached to this post.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Tue Jun 03, 2014 11:42 am

Sorry i'm talking ingame.

I will try that solution. Thanks
B
11
S
3
Posts: 39
Reputation: 814

Post » Tue Jun 03, 2014 11:45 am

Added a screen shot.

So by putting object functionality into a group you are able to disable that group.
I created a whole options system with tabs and found out quickly that invisible isn't disabled - lol.
So put each tab into a group and disabled/made invisible as I switched tabs.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Tue Jun 03, 2014 1:18 pm

I can't do that because i'm using same sprite to display every objects, only change sprite frame :S
So i only have 1 function to create all object only change layout.
You do not have the required permissions to view the files attached to this post.
B
11
S
3
Posts: 39
Reputation: 814

Post » Tue Jun 03, 2014 1:56 pm

One possibility is to check the layer and the objects layer value. Click where the sprites overlap to see that it only moves the correct one.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Tue Jun 03, 2014 2:19 pm

It works :D

Thanks you all!
B
11
S
3
Posts: 39
Reputation: 814


Return to How do I....?

Who is online

Users browsing this forum: 25games, Ashley, dop2000, leotardozc, TRMG and 18 guests