Greenfoot 3.8.1 released
By nccb, with 2 replies.
Last reply by nccb, about 1 year ago:
Unfortunately, that code won't quite work; when you call sleepFor, you still finish the execution of the current code. (This is because all the act() methods run on a single thread; I guess we could use an exception to exit the method but it's messy and not the design we've gone for.) You'd need something more like:
<Code Omitted>