Question by
Maliki1616 · Jun 18, 2016 at 05:39 PM ·
2d game
How to make a floor tile harm the player if he goes over it in a 2D game?
Hi, I started using Unity a few days ago and have been trying to make a simple game where there are these white tiles that randomly turn red and will harm the player if they step over them while they are red. I've completed most of it, but I can't get the red tiles to harm the player if he goes over the. I've looked at various tutorials on collisions and damaging players but none of them seem to allow me to do exactly what I want to do. I would like to know of any c# script that allows me to do this.
Here's a picture of my game
[1]: /storage/temp/72420-example.png
Thanks
example.png
(82.9 kB)
Comment