Hello i´m new here and dont´t understand why i´ve got this error "incompatible types. Please help me :(
Thats my code:
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class Start extends Actor
{
public boolean isSelected=false;
public void act()
{
if (Greenfoot.mousePressed(this)){
MouseInfo mouse = Greenfoot.getMouseInfo();
if(mouse != null)
{
setLocation (mouse.getX(), mouse.getY());
}
}
}
}

