This site requires JavaScript, please enable it in your browser!
Greenfoot back
Venbha
Venbha wrote ...

2017/7/15

Help with wait() method in greenfoot!!

Venbha Venbha

2017/7/15

#
What is that? can any one help me with it? Type a Sample Code Please

So I can Understand it!

Super_Hippo Super_Hippo

2017/7/15

#
Short answer: Don't use it.
Venbha Venbha

2017/7/16

#
Ok, don't use wait(). But then why is it THERE??
Super_Hippo Super_Hippo

2017/7/16

#
It is a method in Java's Object class and since Actor and World extend Object, it is automatically there.
danpost danpost

2017/7/16

#
The 'wait' methods of the Object class are thread operations which are not intended to be used with greenfoot. Greenfoot provides the act method, which can be used to control when an object does anything (which is the same as when it is not to do something, or anything)..
You need to login to post a reply.