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

2018/9/22

Can you please help me?

sjdiw sjdiw

2018/9/22

#
My project keeps on stopping and messing up while playing(i.e. runs for a bit and then stops running automatically....) Could someone provide possible reasons for this without looking at the file itself? Thank you.
danpost danpost

2018/9/22

#
sjdiw wrote...
Could someone provide possible reasons for this without looking at the file itself?
(1) you have 'Greenfoot.stop(();' in your code; (2) an error or exception is thrown (terminal window should appear); (3) CPU overload; (4) bug in greenfoot
davmac davmac

2018/9/22

#
Also: (5) infinite (or very long) loop your code that only gets triggered occasionally. Does the scenario actually stop running - that is, does the "pause" button change back to saying "run"? If it does, it's either an exception or you've got an explicit Greenfoot.stop() call (or Greenfoot bug, as danpost suggests, though I think this is very unlikely). Otherwise, it's most likely an infinite or long-running loop in your code.
You need to login to post a reply.