Picking an object from an invisible layer.

Get help using Construct 2

Post » Sat Jan 19, 2013 4:57 pm

I have several tiles, all in the same family and many in the same screen position, but on several different layers. When the mouse is clicked on one of the tiles, I want to pick only the tile on the layer that's showing. I'm trying....

Mouse clicked on TileFamily
TileFamily.LayerName is Visible

That's not picking anything. Any ideas?
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Sat Jan 19, 2013 5:20 pm

nm, solved this one. I need to do a 'For Each' in between those two events, so it tests each layer of the picked tiles. Works now.
B
25
S
5
G
3
Posts: 446
Reputation: 5,633


Return to How do I....?

Who is online

Users browsing this forum: alextro, christina and 21 guests