I am working on a project and we have started with Greenfoot a couple of months ago, but we need help to complete it.
We are building an Arkanoid/break-out. But we can't break the stones. What codes do you need to help us??
Thanks a lot already.
This is my code for the objects that needs to be removed in game:
public void hitsblok()
{
Actor blok = getOneObjectAtOffset(0, 0, blok.class);
if(blok != null)
{
brick--;
if(brick < 1)
{
brick = 40;
}
getWorld().removeObject(blok); //remove blok
revertVertical ();
}
}