Original Post
how can I make a bullet tail effect like bellow
and how to make if motion is Projectile
and how to make if motion is Projectile

I made a smoke tail for firing rockets, but it's not the same as your image. It was like this:
Basically, I just got a smoke image, and draw one every frame where the end of the rocket is, and I made every old smoke a little more translucent (by decreasing the alpha value). After a short amount of time, I removed the smoke entirely. So, that's an option.
I said rendering engine, ie OpenGL, SDL, directX etc, not full game engine. What API is it your using to draw the graphics basically.
For 2d graphics simply leaving a smoke sprite behind when you redraw a projectile in a new location works fine.
[quote name='BeerNutts' timestamp='1344885885' post='4969168']
I made a smoke tail for firing rockets, but it's not the same as your image. It was like this:
Basically, I just got a smoke image, and draw one every frame where the end of the rocket is, and I made every old smoke a little more translucent (by decreasing the alpha value). After a short amount of time, I removed the smoke entirely. So, that's an option.
This topic has been locked by a moderator. New replies are not allowed.
GameDev.net uses cookies to ensure you have the best experience on our platform. Learn more