I'm using the drawline extension to make a laser sight for my gun. However, once the laser is activated (and then deactivated) a horizontal line is pasted into the backround.... any ideas how to solve this?
And also... any ideas on how to make the line stop when it hits an obstacle backdrop?
Even an explanation of the various drawline events would be helpful... or at least where to find some help.
About the pasting into the background - that could be due to it being buggy
If you want the beam to stop when it hits an obstactle, you could send a small object in the direction of the gun with fastloop and make it stop at an obstacle, then make the line drawn from the player to the object
Well, that's no good. Any ideas how to NOT use the drawline ext to make a laser sight? I could just set the "laser" to always be at a specific spot and be invisible, then when you push a key it becomes visible, but I want it to be able to stop when it hits a backdrop, enemy, etc.
Cellosoft's Fastloop object has a redraw screen action which can clean away glitches, but this can half your FPS, you're giving MMF twice as much work to do!
At worst you should only redraw the screen ONCE when a glitch has occurred.
A real laser sight isn't visible for its entire path, so you could just use a 360-degree instant-hit bullet example and just make it so that until it hits the backdrop, the laser sight is invisible. If you wanted to conserve precious processing time, you could set it so that the laser sight is only fired whenever the player's aim is altered, and it is temporarily "pasted" onto the backdrop it collides with. Very tricky, but you might be able to do it.
If wishes were fishes then we'd all smell like ladies' underwear.