Don't know what to say, please show your code.
I want that when the purple monster touches something red (the line) it is removed from its table, but as you can see in the gif it's not working.
This is the code I made:
if pix(v.x+4,v.y-1)== 2 then table.remove(ents,i) end