Newbie question about creating Lasers
Posted: Thu Oct 12, 2006 7:57 am
Well thats the quesion really. What would be the best way to draw a laser? Say I have a little man running round the screen in a platform style game. I want him to shoot lasers instead of bullets. Any ideas how to go about it?
The laser needs to start as one pixel then increase in size to a certain length and then disappear one pixel at a time from its original starting point. But the catch is I want to be able to do multiple lasers at any one time.
Shall I do some sort of pixel drawing commands or a sprite and resize it on the fly (if i can).
Any help appreciated.
The laser needs to start as one pixel then increase in size to a certain length and then disappear one pixel at a time from its original starting point. But the catch is I want to be able to do multiple lasers at any one time.
Shall I do some sort of pixel drawing commands or a sprite and resize it on the fly (if i can).
Any help appreciated.