Hey, i'm having a bit of trouble getting a "on Key release" effect on one of my actors. I've been trying to do something along these lines:
Im trying to make it so... It wont react so long as the key is held down, but it will do what it calls for as soon as the key is released. The problem is... I don't understand how to use the 'getKey' method at all. I'm rather new to java, and too greenfoot so... please give a good explanation on what you do. Thanks in advance!
if (getKey() == "right" && !Greefoot.isKeyDown("right")) { //what happens on key release. }