I'm trying to create a wall that breaks on collision with the player sprite. If multiple walls are stacked in line next to each other, the explosions will also break all the other walls they collide with.
I'm currently having two problems with this setup:
1) All the wall breakings activate, but only the first breaking wall spawns the explosion sprites correctly. All the other walls spawn multiple instances of the explosion sprites on same places.
2) For some reason, when I move the walls a little bit to the left, the wall breaking doesn't work at all anymore.
Please see the attached capx, I've set up two layouts to showcase each problem:
If anyone has time to look at the capx and help out that would be greatly appreciated (this was supposed to be a quick 15 min implementation and I've now wasted several hours trying to solve it ). Thanks!