Actor receives event

Hi, I have a play button set up which changes the scene. The rule I used was "Actor receives event" and when the mouse button is down, carry out the function... But I can click anywhere on the screen and the scene still changes... The clicking action is not specific to the actor. I only noticed this when I added a mute button for the sounds and clicking it turns off the sound and changes scene. Like clicking both actors at the same time. Does anyone know why this may be occurring?

Thanks so much for your help.

Comments

  • frdfrd Member Posts: 191

    Try adding 'touch is inside'

  • SLOCM3ZSLOCM3Z Member Posts: 797

    Yes. Like @frd said. Use a touch is pressed or touch is inside. When you use mouse button is down all the actor is looking for is when the mouse button is pressed no matter where it is. If you use touch is pressed or touch is pressed inside it will work only if the one actor is clicked.

  • 7brownjack7brownjack Member, PRO Posts: 24

    Perfect! Thanks a million

  • ArmellineArmelline Member, PRO Posts: 5,368

    I advise to avoid using mouse triggers unless your game is going to be exclusively played on computers. Mouse triggers can be rather buggy in ways that touch triggers are not. Touch triggers are also much more flexible.

Sign In or Register to comment.