Hello!
I am working on Greeps and I am quite confused with get/ set Rotation methods.
This is the piece of code that compiles:
setRotation (getRotation() + Greenfoot.getRandomNumber(2) * 180 - 90);
And the piece which does not compile:
setRotation(getRotation() + turn (90));
It states that void type is not allowed there. Can anyone explain why does the first piece of code compile and the second one does not?
Additionally I was trying to use spit("Colour") to leave the trail on the map, but I think I am missing something (greenfoot states "cannot find symbol - method spit"). What do I do wrong?

