So I’m making a 2d game that a bombs fall and destroy the floor. I have the explosion but I can’t make it destroy all objects. Overlap events doesn’t work to me becouse it only affects when it is moving like, when an actor enters or exit the collision. I want to destroy all objects inside the collision here is the bomb script and a video of the game.
Bomb script (the floor has a trigger so I’m working on levels bp) :
okey so I have made this, I have it working properly, when my bomb is destroyed the sphere radius appears. But It doesn’t destroy the actors. I have Them setted as world static actors and I arrayed this to it. Any ideas?
(I have asked the same to the other guy but if u can help to :P) okey so I have made this, I have it working properly, when my bomb is destroyed the sphere radius appears. But It doesn’t destroy the actors. I have Them setted as world static actors and I arrayed this to it. Any ideas?
Right click on DestroyActor and add a breakpoint. Start up the project and trigger a bomb event. If the breakpoint hits then it means the array is being filled out. Hold your mouse over the output array to see what it contains.
If the breakpoint does not get hit then the array is not being populated. Make sure that the actors you’re trying to destroy are WorldStatic actors.
actually on that way that u say works too but only with 3d models so I think its the good answer for this question if u want to know how help me go on the other and answer me ty :DD