Well, I'm coding about the enemy is chasing the player in the maze, but I encounter an error along the way. I don't know how to solve it or any alternative code. I'm new btw in greenfoot so yeah. Thanks in advance. The problem is, the reason of the error is "actual and argument list differ in length". I really don't know how to solve it.
public void SpawnManager () { if (count % spawnSpeed == 0) { switch (rdmSpawn) { case 0 :addObject(new Manager(mainPlayer), 256,223); break; case 1 :addObject(new Manager(mainPlayer), 67,226); break; } } }