# How to make a beam follow a path in xna

I'm making a 2D shmup with XNA 4.0 and one of the weapons in the game that I want is a laser beam that follows a path or a series of points and will smoothly beam along the path.

How would I go about achieving this?

• This is way too broad of a question. What do you have so far? Have you tried anything? Perhaps you have some code that isn't quite achieving the result you desire but almost? – DomenicDatti May 29 '12 at 15:55
• You've got to google around a bit and try it on your own first. SO is not in the business of hand-holding, sorry. – SpikeX May 29 '12 at 15:56
• Is gamedev.stackexchange.com/questions/29424/… what you're looking for? This question covers the 'bendy laser' that shows up in some shmups. – Steven Stadnicki Jun 29 '12 at 18:03

Try using a Queue of (x,y) coordinates. I don't know if you'll need to do it dynamically or at compile time, but you should be able to figure something out either way.