Do you mean the entire code for enemy
i don't think the code is the problem, because it compiles perfectly. Also nothing has changed since yesterday, and everything was working fine
no, nothing was changed, i just opened up greenfoot and tried to add the actor into the world and it wasn't working
Try copying the entire code in the class to a temporary location (to retain a copy of the class), then remove the class and add a new subclass of Actor to copy the code back into (replacing the entire default script). Then recompile and test it out.