Basicly, a game I'm going to make for my class would be better if I added a button to spawn objects for an amount of points.
Can someone tell me how to make a button that performs a method?
I'm pretty sure:
Would work-however, is there a way I could give the feel that the button is really being pressed? For example, the shade of the object I put this script in would change/get darker and possibly the object could get smaller WHILE being pressed.
Can someone help me out here?
if (Greenfoot.mouseClicked(this)) { methods(); }