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

2017/3/7

How long are the numbers in Greenfoot.delay();?

OKNEM OKNEM

2017/3/7

#
I want to make a delay with Greenfoot.delay();, but I don't know the parameters of the int. If I input 5, is it 5 seconds, 5 milliseconds? 5 years? What is it?
danpost danpost

2017/3/7

#
If you input a '5', then the entire scenario will be on hold for the equivalent of 5 complete act cycles. In a scenario running at normal speed (which is usually between 50 and 60 act cycles per second), that would be about 1/10th of a second.
OKNEM OKNEM

2017/3/7

#
Awesome. Thanks.
You need to login to post a reply.