I have a little problem with collision. I made a script to destroy enemies on collision, and when I collide with the enemy by moving forward, it is destroyed. But when jump on the head of the enemy, it does not destroy, but rather, my player will be on the head of the enemy.
Is there a way for me to destroy enemies by jumping on their heads? Something just like Super Mario Bros where Mario can jump on enemies and they are destroyed but when he collides with an enemy, he loses health or a life.