I was wondering how the act()-method is coded in Java. I know that Greenfoot is an IDE using Java, so everything that already is programmed in Greenfoot is written for you in Java.
I can imagine that in pseudocode it might be something like:
but I'm not quite sure...
Is there someone who knows the Java code behind the act()-method?
if (run-button is clicked) { while(pause-button is not clicked) { [...] //all the code that you'd write in the act()-method } }