Hello,
is it possible to track how long a putton is pressed (like a charge) and if so, how?
thanks
int count; ... public void act() { if(Greenfoot.isKeyDown(YourKey)){ count++; } if(count == yourDesiredAmount){ doAction(); count = 0; //This is important, you have to reset the count variable somewhere! } }