This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
bobbyjones2000
wrote ...
2016/3/28
How to see if mouse is being pressed on an actor?
bobbyjones2000
2016/3/28
#
Hey guys, Is there a way to see if the mouse is currently being held down on an actor? Thanks.
Super_Hippo
2016/3/28
#
http://www.greenfoot.org/files/javadoc/greenfoot/Greenfoot.html
There you can find the methods related to the mouse. They are often enough. Maybe you also want to use a MouseInfo method:
http://www.greenfoot.org/files/javadoc/greenfoot/MouseInfo.html
You can use combinations of some methods. I guess 'mouseDragged' could be the method of your choice.
You need to login to post a reply.
X