1
Rika and Nitori's Garage Experiments / Re: ※ Danmakufu Q&A/Problem thread 3 ※
« Last post by Drake on Today at 06:07:34 am »And how do I get a Log Windows?Open config.exe, go to Options and check Show Log Window. Then on launch the log window will appear, and you can check the Info tab for various things.
I agree this is probably a case of objects that continually spawn and are not deleted. You can monitor how many objects exist through the log window and see if they just keep increasing while your script is running.
Ok, so I was trying to implement it into my spell and I have a question. Does randomness mess with the boolean? In the spell, the bullets come from different, randomized angles, yet eventually reach the center of the bullet, so it shouldn't be a big deal.This goes back to what I said about "this will probably have its own problem". This happens because collisions are more complicated than just position = position. Like Hele says, you could have a position value that is like 200.583921, and that will not be equal to 200. Even if a bullet gets close to the position of the other, the chances they will actually be equal is extremely small unless both bullets are tightly controlled (which is what you saw when you had no randomness and a 180 angle and integer-valued speed).
Instead, collision typically checks if the distance between the two things is less than some amount. You can do this using
if(((x1 - x2)^2 + (y1 - y2)^2)*0.5 < r) or if(GetObjectDistance(obj1, obj2) < r).