Game Development Community

Aiming Guide/Trail

by Nick Butcher · in Torque X 2D · 05/15/2010 (12:10 am) · 3 replies

Does anyone have an idea how to make an aiming guide/trail/path like Gears of War, in 2D? So the trail would hit the ground and bounce showing the path of the item.

#1
05/21/2010 (3:45 pm)
The math part of it would be easy, but I'm not sure how I would draw it to the screen. Obviously, from a point to point you could just draw a line, but for curved trajectories, I'm at a loss. I guess you could draw short segments of lines, but that would lead to a very rough curve. The more lines you draw though, the smoother it would become. I'm not sure if thats the most efficient way to do it though.
#2
05/21/2010 (7:13 pm)
You could do points or better yet, particles. Just a thought.
#3
05/22/2010 (12:39 pm)
Particles work really well for curves, plus they can do cool things while curving, if you look at my last game I had attached a particle effect to the ships in space so that they would leave cool trails.