This site requires JavaScript, please enable it in your browser!
Greenfoot back
SeargentMitchell
SeargentMitchell wrote ...

2023/3/9

Ok new problem

SeargentMitchell SeargentMitchell

2023/3/9

#
I need to figure out how to check if the mouse has been clicked anywhere, and then just play a sound. I have found a way to do this with the (Greenfoot.mouseClicked(this)) code however the problem is it dosent check if any place is clicked only the actor that it belongs too. -Mitch Mitch
danpost danpost

2023/3/9

#
SeargentMitchell wrote...
I need to figure out how to check if the mouse has been clicked anywhere, and then just play a sound. I have found a way to do this with the (Greenfoot.mouseClicked(this)) code however the problem is it dosent check if any place is clicked only the actor that it belongs too.
Try Greenfoot.mouseClicked(null)
SeargentMitchell SeargentMitchell

2023/3/10

#
thanks bruv
You need to login to post a reply.