Does anybody know how to fix this problem? My game is just about finished, but it keeps running out of heap space and crashing! I need to get this game done this week before I go home for Christmas...
It's not a very long game, so I don't understand why it keeps running out of memory. It happens after ~ 5 rooms. And it doesn't just happen at one particular spot. If I edit the initRooms script to start the game at a different screen, it still happens after a few rooms. Each individual room works fine, though.
Can anybody help me with unloading resources? I don't know how to do this. Thanks!