Need help drawing a image from one point to another

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Littlejimmy
Posts: 15
Joined: December 10th, 2012, 11:10 am

Need help drawing a image from one point to another

Post by Littlejimmy » February 18th, 2013, 2:03 am

i am trying to draw this laser from the green circle to a random position but my problem is i have no idea how to do that. and i am using the draw alpha sprite function. any help or pointers would be very helpful
Chili DirectX Framework 2013-02-17 20-51-34-58.png
(6.82 KiB) Downloaded 212 times
Chili DirectX Framework 2013-02-17 20-51-35-62.png
(5.25 KiB) Downloaded 212 times

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Need help drawing a image from one point to another

Post by LuX » February 18th, 2013, 3:09 pm

Using the function we have used so far will make it a bit tricky. You would need to rotate each pixel individually which is slow and looks crappy.

There's no tutorial here, but you could learn how to use d3dsprites, but for now maybe you could rethink and just draw multiple lines from the green point where the middle line is brighter then the ones on the edge and get the same effect.
ʕ •ᴥ•ʔ

Littlejimmy
Posts: 15
Joined: December 10th, 2012, 11:10 am

Re: Need help drawing a image from one point to another

Post by Littlejimmy » February 18th, 2013, 8:19 pm

ok then time to do some rethinking. thanks for the help

Post Reply