Let's say you have your actor that is the miner. Have a rule inside the terrain actor saying - If actor overlaps or collides with 'miner,' then Destroy the actor.
I understand all that. My idea at the moment is to have my terrain actor (a 50x50 square) spawn in predetermined locations so that I can destroy each terrain square individually. is there some way to do this?
You could use a table to prepare the location of each terrain square, and then spawn based on the table values, or you could place the terrain squares from the scene editor itself. However they are spawned or placed you can still use the same collision rules that @NovicaStudio mentioned to destroy them.
is there a way to restrict the terrain actor to destroying itself only when the miner is moving down?
You can read the actor's linear velocity, if it's <0 then the miner is moving downwards. You can toggle a game attribute when the actor is moving down, and then only destroy the terrain when that attribute is on.
Comments