There is a landmine on a platform, if the character touches the landmine it will explode after like 2 seconds, so the character has enough time to go away before it explodes, but if the character stays on it or beside it he will die after it explodes, how can I make it this way?
Make the explosive animation or whatever it is you use, collision shape larger than normal covering the area you wish.
Yes but if I set the landmine as Enemy, and when the character touches it the character will immediately die, I don't want it this way, I want character dies only if the landmine exploded. I don't know how to do this.
create a new enemy animation as the explosion and place it in the death animation for the mine with the larger radius.