Hello,
i'm trying to make a little 2D shooter, but i'm stuck at the Problem, that there is no holdingMouse feature. So i tried this, didn't work so please help:
private int on=0;
if(Greenfoot.mousePressed(null))
{
on=1;
if(Greenfoot.mouseClicked(null))
{
on=0;
}
else
{
on=1;
}
}
else
{
on=0;
}
Note: i'm new at java programming :)

