- Home /
Question by
real_qwertycoxy · Jan 01, 2014 at 07:20 AM ·
collisionmagic
How do you a fire ball leave fire when it collides with something e.g. Ground
I am making a game with magic in it and i cant seem to figure out how to make the fire leave fire on the ground or something like that. It would be great if someone can help me.
Comment
Best Answer
Answer by YoungDeveloper · Jan 01, 2014 at 07:32 AM
Add fire partickle effect to you fire ball prefeb, you can find it in standart assets. In Start() method disable partickle emitter if you dont the fire effect playing already after fire ball is spawned. When fire ball hits something disable fire ball renderer and its trigger and enable partickle emitter. You can also create a timer and delete whole gameobject after its 0 so fire effect wouldnt be infinite.