Is this right,
In actor :
In the actor , in it's own method:
I keep getting a error at saying , "incompatible types".
I trying to make it so that when the player gets hit 5 times by "DarkPlasma" the game stops.
int hitCounter = 5;
{
if(getOneIntersectingObject(DarkPlasma.class) != null){
hitCounter--;
if (hitCounter = 1) {
Greenfoot.stop() ;
}
}
}if (hitCounter = 1) {

