sprites and pics

Get help using Construct 2

Post » Tue Jan 29, 2013 10:02 am

Greetings to all
i have put two sprites (with different pictures) on the layer.
one on the top of other
like in visual novell, background and a character
then i made two events (mouse click) for them.
one for one sprite (.png pic) and one for another (.jpg pic).

but when i click the top sprite, then both of events are action.
what do i do wrong?

i am trying to do next thing:
click on character, play sound
click on background. play music.
but now when i click on background its fine, and when i click on character both of sounds are playing.
B
3
Posts: 3
Reputation: 381

Post » Tue Jan 29, 2013 10:05 am

sorry for bad english
B
3
Posts: 3
Reputation: 381

Post » Tue Jan 29, 2013 10:58 am

well, in each case you click on both at the same time (:
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Jan 29, 2013 11:03 am

True
I just wonder why event is called: On object clicked ?
I thought that objects are different...
B
3
Posts: 3
Reputation: 381

Post » Tue Jan 29, 2013 11:14 am

Even if there is two or more sprites on top of each other, you are clicking on all of them. Thus, 'on object clicked' is called for each of them :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,192


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests