Hello everyone,
I am working on a game where there is a Death Zone setup at the bottom of the screen (similar to that in most platformer games). I have an FSM on the Death Zone with a starting state that contains "Trigger Enter 2D" event (the game is in 2D). This event tests for a tag called Enemy and stores the object it collided with.
Once that fires, it sends an event to the another state that destroys the collided object.
The object I am testing has a movement setup where it moves towards (using the Move Towards action -- I tried finish distance 0, 1, -1 and same thing) an object just above the Death Zone and continue moving till it touches the Death Zone. However, it doesn't get destroyed at all.
I tried to change the setup from "Trigger Event 2D" to "Trigger Info 2D" but it is the same exact problem.
I thought maybe if the FSM isn't on the Death Trigger and on the enemy itself it would work. It didn't unfortunately.
Any idea how to resolve the issue please? It has been bugging me for hours (I have Death Trigger's Box Collider marked as trigger).
Thank you very much in advance.