im trying to make a game where i can move something left and right at the bottom of the screen, and then shoot so hopefully using multiple buttons on the keyboard. only problem is i can only seem to get any one key to respond
in my act() method i have something like:
        if("left".equals(Greenfoot.getKey()))
        {
            moveLeft();
        }
        else if("right".equals(Greenfoot.getKey()))
        {
            moveRight();
        }
and i would have one for the shoot function aswell, atm that is asigned to mouse click.
basically, the two methods moveLeft() and moveRight() work fine, and whichever one i put first (no matter what key it is assigned to) will work and the other won't. I tried putting them in seperate if statements, no luck.
   
   
             
          
        


