shield arcs

BlitzMax Forums/BlitzMax Beginners Area/shield arcs


you mean i dont have to set the rotation of the torpedo in the collision function if i use imagescollide2?


that is correct.

I agree with you, the problem should exist, as I have done nothing different. I place the arcs, i rotate them and i test each at ship.x and ship.y but Im telling you it works.


the only explanation I can come out with on why it works is that you are rotating, displaying and then testing the collision before resetting the rotation back to 0. That would solve the problem for that issue. on the other hand you have to be careful that all of your collision detections happen in that order and that you are not colliding two independently rotated images. against each other because that would become up to 100% inaccurate. there is no guessing here. It either works correctly or it doesn't. if you don't know why it does, you need to analyse your code because it might fail when you least expect it.