Technical Support => Bug Reports => Topic started by: DinoDan on November 29, 2014, 05:48:49 PM
Title: Whenever I use the levelexitarea script, my game crashes
Post by: DinoDan on November 29, 2014, 05:48:49 PM
For some reason whenever I use the levelexitarea script and I test it the debug mode shutsdown. Please fix it.( I put the level Im working on with it.)
Title: Re: Whenever I use the levelexitarea script, my game crashes
Post by: dingoZero on December 06, 2014, 12:28:06 PM
Next time post in the Editor Discussion forum for better feedback.
Anyway, your problem is that you are referencing the level by entering it's file name. You should instead reference a number that is consistent with the level id in the levels.xml index file.
Essentially what I am saying is that in this screenshot: http://gyazo.com/879a0a31ea21e97501be30d328463455 (http://gyazo.com/879a0a31ea21e97501be30d328463455) where it says "dloor 2" it should instead be a number.
A proper level file looks like this (I've edited it for your map).
If you want to add more levels to it, just add another line, make sure there are no duplicate level ids, and it should work correctly.
One more thing. This is a pet peeve of mine, but these: http://gyazo.com/031e36c94b0f76382f984c3baaad2565 (http://gyazo.com/031e36c94b0f76382f984c3baaad2565)
Should look like this: http://gyazo.com/931a17d84d2d5b19272743e1f972db82 (http://gyazo.com/931a17d84d2d5b19272743e1f972db82)