
-----------------------------------
evildaddy911
Sat Feb 18, 2012 12:21 pm

quit #51
-----------------------------------
What is it you are trying to achieve?
a top down shooter


What is the problem you are having?
every time i run the program, it will run for a few seconds then crash, highlighting line 80 and saying "Quit #51"


Describe what you have tried to solve this problem
I have no idea what Quit #51 means, or how to fix it


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)








Please specify what version of Turing you are using

[url=http://compsci.ca/v3/viewtopic.php?t=29759]open

-----------------------------------
Aange10
Sat Feb 18, 2012 12:34 pm

RE:quit #51
-----------------------------------
Cant help you without the M class

-----------------------------------
evildaddy911
Sat Feb 18, 2012 12:40 pm

Re: quit #51
-----------------------------------
right, sorry
You'll probably need the text files too

here it is:

-----------------------------------
Aange10
Sat Feb 18, 2012 1:24 pm

RE:quit #51
-----------------------------------
From toying with it a bit, my best guess is the numbers are getting too big. At some points, the Distance forumla is computing the square root of 175 million, and that number just gets bigger in the DistancePointLine function (looking at the sourcecode).

I'm not sure what Quit #51 means, but it probably has to do with the number being too big.

Is there a reason why the y2 of the line needs to extend past the MAXY of the screen? Sometimes it's even reaching -8,000.

Why not just make the line to the end of the screen?

http://i.imgur.com/pvZng.png

(Here is my little bit of debugging, I haven't read the rest of the code.)
