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

2011/3/5

Act() cycles per minute

m.legere1323 m.legere1323

2011/3/5

#
Any way I can set the act() method to run n number of times per minute?
mik mik

2011/3/5

#
In the Greenfoot class is a 'setSpeed' method. Have a look at that. It doesn't promise an accurate cycles per minute measure, but you can approximate it by experimentation. It should give you pretty consistent results across different machines with different execution speed (as long as the machine can keep up with the speed you are setting).
m.legere1323 m.legere1323

2011/3/5

#
Thank you! =)
You need to login to post a reply.