ID:140148
 
Problem description:

I just have noticed I haven't been putting set background = 1 in some of my procs, and the game has been crashing. Could this be the reason for some of the major procs?
Are there any runtime errors occurring that you did not fixed?
"set background = 1" is something you really should never have to do. It amounts to putting a sleep(-1) at the end of every single loop, which will (with proper design) do nothing.

If your game is crashing, looking at any runtime errors or anything that is occurring around the crash would be helpful.