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.
sorry for bad english
well, in each case you click on both at the same time (:
I just wonder why event is called: On object clicked ?
I thought that objects are different...
Develop games in your browser. Powerful, performant & highly capable.
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 :)