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

2014/4/9

change image on mouse over

Mimagic Mimagic

2014/4/9

#
having a little trouble with the mouse over image change within greenfoot, i want to be able to change the image on a button and keep it set to that image while the mouse of over the button, not while the mouse is moving over the button. so far i have tried using: if(Greenfoot.mouseMoved(this)) <- but that only works for a moving mouse over an object not just while the mouse is sitting/hovering over the object, any suggestions will do.. working on a college project :/ Ash,
danpost danpost

2014/4/9

#
Any one of my latest scenario has a button with mouse hovering image changing. You do not even have to download them to see the code. You will find the button Actor code within the main worlds of each of them except the newest one, which is in the Menu world (the UserInfo Jumbo Maze Demo scenario).
You need to login to post a reply.