Hello,
I am hoping to improve my “laser” effect (not using PC) with some glow effect around the beam. Would PC works on this type of effect? if yes how?
Here the code I am using so far. The laser beam comes from the bottom of the screen (center) and is pulsed toward on the screen. I am not simply using a line draw because I want to simulate a 3D effect where the beam gets smaller the farther way from the source of the beam.
[lua]laser.x =240
laser.y =360
laser.xScale =distance*0.22
– distance/angle are calculated elsewhere and it is simply the
—distance between the source of the laser beam and the object to --be destroy on the screen (angle is the angle between the source --the object(ie:atan2…)
laser.yScale =1
laser.rotation = gunAngle
laser:setFillColor( 0, 255, 0)[/lua]
The code above is called most of the time with the main game loop (enterframe) when the fire button is triggered.
The end effect is a laser beam that seems to get narrower with distance but I would also like to add some glow effect to it if possible.
Thanks for any pointers.
Mo [import]uid: 100814 topic_id: 26053 reply_id: 326053[/import]