In this situation whene a square is 7pixel near an other square having a special variable, the square detected should change colour. For this I use LOS, but the way my event is structured, each square with special variable checks every ticks (i guess) if there's an other one near which obviously cause lag.
So I would need to fix this by only calculating if there's squares near whene a button is clicked but also have the colours display until it updates.
Thank you