I've been having lots of trouble with collision lately, and after I get something fixed, something else comes up right when I progress in making more of my game.
The player can now shoot a bullet, and depending on if he's facing left or right, that's where the bullet points and goes. Now I've begun working on making the bullet disappear, and so I decided to use c_trace. But, like people have said, c_trace is extremely slow, and sometimes if I get too close to a wall, or just am a certain distance away from the wall, the bullet goes through. I tried using c_scan before this, which seems like the best solution, but I'm a bit confused on how it works.
After you have a c_scan command, is there a "scan_hit" type of thing, just like trace_hit? If not, how would you go about asking the program if anything (including walls that are not entities) is in the scanning area?
Also, if there's a better way to detect when a bullet hits an object or block (and isn't too complicated for a nub like me :P), please suggest. Thanks in advance.