so ive been working on thi game for a week now, and over time it got slower and slower due to the usage of many worlds and actors. some of them even have gifs as their image and this often causes greenfoot to run out of memory, so i have to restart the program. now the game is almost done but you can barely finish it, because you get errors, and if you run it from an exported java file, it simply stopped. i tried the game time set to a shorter interval, and this way it works better, but the game is supposed to be longer, and in this cases it stops around the end. one of the problems that i think it could have is the many world changes. after the game starts there almost 30 world changes and i believe this is what causes the game to stop. i would like to know if there is a simple solution to fixing this, or i should just try and do it with less objects.
note: there are 4 actors that are constantly in the scenario, they dont get removed, only replaced. there are some added animations that after playing, get removed.
idea: i was thinking of fixing the many world changes with adding actor, but i want to know if that would even fix the problem...
