Hello!
I'll make it simple. Sudden nostalgia, I wanted to make a small game for fun. Started to seek out the old scripts I used to have years ago. I found this script:
http://forum.chaos-project.com/index.php?topic=5710.0, which is way better than what I used to have. It's perfect: lots of different weathers, for all taste.
... Except for one thing. I can't transfert the player from one map to another without crashing. It even occurs in the downloadable demo in the above link. Whenever I change of map, the game crashes completely, saying:
QuoteScript 'Weather Script' line 164: NoMethodError occured.
undefined method `each' for nilLNilClass
The line 64 in question is simply:
for image in @flame_meteor_bitmaps
image.dispose
It's one single script, I tried in both the demo (which contains only this script and nothing else) and my own game. It's said to be compatible with almost everything, yet I don't understand why it crashes. On the other hand, if I put the Starting Point in a map which generates the weather from the script, I have no problem playing. I can generate all the weather I can. The crash really occurs the minute I want to change the map I'm in.
Thank you!
Sorry for using such old scripts by the way.