Please help me! This is giving me headache.
What I want its Simple but of some reason its no working as desired:
When I click in a Block, it spawn a larger TesterBlock over the block that recognizes if there is another blocks overlaping him(TesterBlock). If its overlaping, the overlapped Block spawn another larger TesterBlock that recognizes (And Loop again) ..... Some kind of recursivity.
So with this I want to provoke a chain reaction that will Destroy all blocks overlapped.
So my problem is, when I try to do implement this, or it keeps creating the TesterBlock each frame or just one testerBlock verify and the others not.
Develop games in your browser. Powerful, performant & highly capable.