How do I make this work?

Get help using Construct 2

Post » Mon Jan 12, 2015 3:33 am

Hello,

I try for al long time to get someting working. I tried alot of things for my game. I got the issue when I give a Click mouse or touch event on a sprite, it dosnt matter what kind of Z order they are they all react one the same mouse button...

I made a little example of my problem;
Help.capx


How this works,
if you hit the Blue and Red box they got destroyed,
If you hit the Yellow box you got 5 points.

My problem i tried to show here: The player needs to click the Blue and Red box first before he gets to the yellow part en get his points. But every time you hit the Blue and after that the Red one you also hit the yellow one. Why? I cant figure it out. I tried variables, families.

Is there someone who got me a solution?? Before you give me your replay just test first of its working, Thank you,
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 7
Reputation: 189

Post » Mon Jan 12, 2015 3:55 am

Seems to work ok for me. Click any colour, I get 5 points. Click blue or red, they get destroyed, yellow remains.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Mon Jan 12, 2015 4:02 am

Thanks for fast response. I know but if you look closely if you hit the red or blue box you got 5 points and thats not what i want only if you hit the yellow one. The problem is if you read my post. It looks like you can click through the sprites.
B
3
Posts: 7
Reputation: 189

Post » Mon Jan 12, 2015 4:42 am

@Whazza

Silly and temp fix. U probz thought of this. But try this and see if it helps temp.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
G
1
Posts: 96
Reputation: 632

Post » Mon Jan 12, 2015 5:11 am

Whazza wrote:Thanks for fast response. I know but if you look closely if you hit the red or blue box you got 5 points and thats not what i want only if you hit the yellow one. The problem is if you read my post. It looks like you can click through the sprites.


ok. Lost in translation I guess. And I did read the post.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: mindragon73, nahima and 26 guests