I'm trying to have my platform guy shoot a laserbeam and it is a constant flow from his gun to the end of the screen, or if it hits a wall, as soon as you press shoot. Everything in it's path blows up or dies. The laser is a constant flow from the time you press [Ctrl] to the time you release.
I know this is going to be quite tricky to do and if anyone wants to help out you'll be credited. I think i'll have to use fast loops and heaps of small active object but im not too sure.
You can either
A: Use fastloop + advanced math object, and a heap of small objects that only exist for a single frame
or
B: Use the Drawline extensions
*collisions are very difficult with drawline, but if you want to keep your AO's down from it, heres what you can do*
Use drawline to draw the graphical effect, and use a single active object in a fastloop as a detector; have it go the exact path the drawline will go through.
Bear in mind, drawline is also fairly buggy in that it will often not clear the background properly, and leave little bits of itself. Overlay is another possibility, depending on what kind of game you are doing. Generally, if you overall active object count is low, its worth it just to use a stream of AO's instead of drawing lines.
the only time I saw it used heavily and awesomely was when that who had the Carnage avatar made a Spiderman Demo. Just checked, and damn the DL isn't valid anymore and Mavel Hero dropped off the face of the planet 30k hours ago.
Aside from the pasting bugs its works completely fine, afaik.
However, it WILL create excessive crap on your background. Overlay is the only choice if ur using MMF2.
Thanks sketchy, works a treat. It's just sometimes the laser goes through the squares for a split second, only sometimes, but I dont know if this can be helped, can it?