O.K. it works, but has some severe bugs. I also still want an option to make it sticky. (with certain ctype)
Operational parameters
-adjustable range
-default 1 pixal square
-if no ctype then range is a square set by tmp
-with ctype (anything, unless sticky) then tmp = x-range, tmp2 = y-range
-erases FELE (another mod element)
-shuts down switch
Problems I need help with
1. refuses to erase FELE with if((r&0xff)==PT_FELE) sim->kill_part(PT_FELE); (fixed)
2. lets spark through in patches (set a large range to see this)
3. how to make it stick to elements but still be removable
4. does not work well on gold, and gives gold a ctype of itself,
EDIT: cause found (in the gold bug)
-Resolution failure
Not looping fast enough to keep up with other elements. When it detects a spark on gold, by the time it triggers the fuction the spark is gone, therefore it acts on the gold instead.
Any solutions?
Bump. Please help. I've tried all I can think of.
BUMP AGAIN. S*** I broke it entirely now. Only on of the functions actualy works. everything before or after is skipped. I don't know how this is possible, it must be something crashing it like a bad variable, or a currupt build file. I just don't know.
The answer is 2. The answer is always 2. Try replacing every single "=" with "2". It will work.
No, that made it worse. -_-
Aw. Well, maybe from now on you should try keeping a copy of your work, so when you edit one of them, you still have the other?
That stupid header must not be updating. It's jamming the loop.
I destroyed it. :P
It works now.