Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How to Disable Enemy's Collider When Stomped On?

$
0
0
So in my 2D Platformer I have an enemy that will fly towards you within a certain range and I have a box on my player's feet that if it contacts the enemy it will destroy the enemy and the script to destroy the enemy is on the box. But when I jump on it the Player takes damage and kills the enemy. Is there a way to make it so it will only kill the enemy without the player taking damage?

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>