Hi, So I'm working on a game for my tech glass, and I wanted to make a small power up, where when you touch it with the player, it slows down the enemies. I have everything set up, except for the boolean for when you get the powerup. Here's my code:
public boolean isLobsterFrozen()
{
if ( canSee(FreezeLobster.class) )
return true;
else
return false;
}
//this is on the player^
public void freeze()
{
if ( isLobsterFrozen (true) )
{
lobsterMoveSpeed = 3;
}
}
//this is on the enemy^
Thanks!

