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.
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
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.