Hi again. So I want to create a new object, from an another class, at the same spot.
My code is this, but I doesn't work. ND is the name of the class, i want to create an object from, and ND_dum is the class this method is located.
So how do i correct my code?
public void nd_missil()
{
if (Greenfoot.getRandomNumber(1000) == 5)
{
getWorld().addObject new (ND, setLocation(getX(), getY());
}
}