Clicking overlapping objects.

Get help using Construct 2

Post » Mon Sep 30, 2013 4:10 pm

Hi everyone! I'm new to Construct and have a problem that I've been trying to solve for a while without success.

The problem:

I have two squares that are placed one atop the other. When clicked the first is supposed to move to one position, the other (when clicked also) to another. Thing is, when I click the first the other one registers the click also and his action is triggered. Now, I don't want this to be happening. I need the second one to move when expressly clicked.

I tried using variables and other improvised solutions but got no results. Here is the .capx

https://dl.dropboxusercontent.com/u/193394347/Problem.capx (dropbox)

Hopefully someone has advice that I could use to advance towards a solution. Thanks!

GBTwood2013-09-30 16:12:37
B
2
Posts: 2
Reputation: 154

Post » Mon Sep 30, 2013 4:41 pm

Here's how I would handle it with variables.

B
17
S
4
Posts: 31
Reputation: 1,600

Post » Mon Sep 30, 2013 6:04 pm

Thank you very much BogueRat, your solution works like a charm in all the instances I need it too! Cheers for the great help
B
2
Posts: 2
Reputation: 154

Post » Mon Sep 30, 2013 6:14 pm

You bet! Glad to help.
B
17
S
4
Posts: 31
Reputation: 1,600


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 4 guests