How to add blood splash on a 2D Fighter Game ?
Hello,
I am working on a small 2D fighter game and I want every time the player or the enemy is hit, a blood splash to appear hopefully with random red particles for a better effect.
The problem is that I have no idea how to do it or I can find any tutorials. Any tips on where I can start my approach?
Thank you!
Answer by Kaymanga_ · Dec 27, 2017 at 12:31 AM
public ParticleSystem peffect; public AudioSource punch;
private void OnTriggerEnter2D(Collider2D collision) { if(collision.tag == "wp") { peffect.Play(); punch.Play(); ;
just create a particle system with how you want the blood to look and do something like above. peffect being the particle system.
Answer by Eemil_Ahonen · Nov 09, 2017 at 04:35 PM
https://www.youtube.com/watch?v=vwUahWrY9Jg
https://www.youtube.com/watch?v=ge9XMrKx8m8
Those 2 are great tutorial on blood splashes. They are made for different type games, but shouldn't need much to work around to use them in your projects.