Mouse/Sprite: get/set different behaviors

Discussion and feedback on Construct 2

Post » Fri Jun 14, 2013 1:49 pm

I have wide experience in Javascript, but I am new in Construct2.
I am stucked in a problem, I think maybe a bug inside the program, or maybe inside my head.

When I have one sprite over another and pass the mouse over a point on the screen common to both sprites, the "cursor is over" event correctly identifies the sprite that is on top, but when I set one action it affects both, not just the one identified by "cursor is over".

There is something wrong about this behavior, there isn't?

Here is a simple project example of the situation: http://live.blog.br/test/
Below we have that code.

Thanks.

B
10
S
3
G
1
Posts: 3
Reputation: 847

Post » Sun Jun 16, 2013 12:31 pm

Try adding a "Pick top/bottom" condition for the sprite to the "Cursor is over Sprite" event.Przemek327672013-06-16 12:34:24
B
174
S
79
G
29
Posts: 56
Reputation: 23,532

Post » Thu Jun 27, 2013 2:53 pm

That is the way! It works fine.
Thank you very much.
B
10
S
3
G
1
Posts: 3
Reputation: 847


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests