S
S
svizda2020-07-07 23:32:14
2D
svizda, 2020-07-07 23:32:14

How to make a flamethrower in Unity2D using Particle System?

I decided to make a flamethrower in my 2D Unity project. I thought it would be easy and beautiful to make the fire itself through the Particle System, but it turned out that it was not so simple (at least for me). I don’t know how much I’ve been scratching my head about how to make it so that it would be possible to track if the particles collide with the enemy. If yes, then damage the enemy. That is, each particle deals, for example, 1 xp damage. And if 10 particles hit, then 10 damage will be dealt. And yes, I clambered all over the Internet and did not find what I need. Tried with both Trigger and Collision (All this in Particle System), nothing works. I hope I phrased my question correctly. Waiting for an answer.

Ps I will attach screenshots of the settings of the fire itself in the flamethrower.
5f04db7880b58892810851.png
5f04db8d46185738502957.png
5f04db95165da134903094.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question