Actor receives event
7brownjack
Member, PRO Posts: 24
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
Try adding 'touch is inside'
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.
Perfect! Thanks a million
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support