Home > Back-end >  About greenfoot
About greenfoot

Time:10-08

I use a for loop to create a few sheep, wanted him to stop for a while after eating grass, how to control?

CodePudding user response:

Used greenfoot, stop for a while after eating grass, I think that can use a Thread to sleep to implementation, Thread. The sleep ();

CodePudding user response:

reference 1/f * King reply:
used greenfoot, stop for a while after eating grass, I think that can use a Thread to sleep to implementation, Thread. The sleep ();
thanks for elder brother, I'm going to try
  • Related