Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

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