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. :P
Just downloaded the demo and can't crash it. What are you doing specifically?
EDIT: Actually, I have no idea what script you are using. I just CTRL + F for "flame_meteor_bitmaps" and it returned nothing.
Quote from: KK20 on May 24, 2014, 06:40:15 pm
Just downloaded the demo and can't crash it. What are you doing specifically?
EDIT: Actually, I have no idea what script you are using. I just CTRL + F for "flame_meteor_bitmaps" and it returned nothing.
? That's odd.
I copy/pasted the Weather script from the demo. O_o
That said, I ended using another weather script instead, with as many different effects, so I guess my problem is solved. For now. Thanks though! :)