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

2017/8/6

Time steps in Greenfoot

daw_germany daw_germany

2017/8/6

#
so there is the method Greenfoot.delay which delays the current execution by an int of time steps, and this is where my issue lies b/c the time steps are defined by the speed of execution of Greenfoot and i couldn't find any information on how long for example Delay(1); at the standard speed would be
danpost danpost

2017/8/6

#
daw_germany wrote...
the time steps are defined by the speed of execution of Greenfoot
This speed of execution is controlled by the speed slider for the specific scenario. At the normal speed of 50, one time step is somewhere around 1/60th of a second. That is, something between 55 and 60 act steps are executed each second. Please note that using Greenfoot.delay(int) will suspend the entire execution for the given time -- no actors will move; no code will be executed except for an empty loop that repeats itself until the given time has expired.
You need to login to post a reply.