Hey guys, I have some problem here.
I want make this:
When I'm click on some sprite (in the center) system will create 4 colored blocks on x + 40 and y + 40 of this sprite.
So it's easy, but not optimised. I need create sprites everywhere in my layout. More convenient to do this by using Tiled Background, but I can't detect position, where to create this colored blocks.
I tried to do this by using round(mouse.x/40)*40-20 but it's creating in different positions and not always in the way I wanted to.
Help me 3: