OK so there is limit of objects being able to be pasted to the background - and that's OK with my current game but it's bad for a tech which I'm doing ATM. But I found how to sort it out.
I got two objects A and B. A Discovers area, B Creates FOW effect by pasting itself in backdrop.
It works like that
B isn't overlapping A -> Set "A" X Position to ("B" X Position / 40)*40 ; Set "A" Y Position to ("B" Y Position / 40)*40
So it adds into background in each 40 pixel square.
But now my issue appears. I would like to save position of A object in each of those 40 pixel sized squared to the list of any kind (Array, List Object, whatever) but only if that position never appeared on the list.
Thanks to that object B will be pasting only in new just discovered areas.
Anyone able to tell me how to do it, or provide any example? I would like to make my idea public, so any help appreciated.