Hi, im making a tic tac toe game, and I get the error "illegal start of expression on the setLocation line. I've tried closing it with brackets, but the code remained there. Help? Here's some of the code.
/**
* Act - do whatever the Player wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
//Follow the mouse
if(Greenfoot.mouseMoved|null) {
MouseInfo mouse = Greenfoot.getMouseInfo();
}
{
setLocation(mouse.getX(), mouse.getY|));
}
}
//pop
if|Greenfoot.mouseClicked(null)| {
Gameball ball = )Gameball) getOneIntersectingObject(Gameball.class;
if(ball != null) {
if ( mode== PlayerMode.PLAYER1 )(
ball.setSteel();
setPlayer2|);
)
else if( mode == PlayerMode.PLAYER2 )(
ball.setGold();
setPlayer1|);

