Hi
I'm trying to remove the middle Wall from the horizontal grey bar in my world class. I tried the code removeObject but I'm getting an error. How can I remove an object at a specefic cell from a specefic Actor class in my world class?
Here you can see a picture of my world, the image with the red circle must be removed:
I hope someone can help me as fast as possible.
Kind regards
Nike Sprite ;)
public void vrijlatenGhost(int tijd) // laat een Ghost om de 10 vrij.
{
if (tijd == 10)
{
// I WANT TO REMOVE THE WALL WITH THIS COORDINATES
removeObject(12, 7, Wall.class);
greenGhost.setLocation(12, 6);
}
if (tijd == 20)
{
blueGhost.setLocation(12, 6);
}
if (tijd == 30)
{
redGhost.setLocation(12, 6);
}
if (tijd == 40)
{
pinkGhost.setLocation(12, 6);
}
if (tijd == 50)
{
orangeGhost.setLocation(12, 6);
}
}


