Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ofonna on November 16, 2017, 09:25:02 AM

Title: How to make Gun Laser
Post by: Ofonna on November 16, 2017, 09:25:02 AM
hi guys, i thought making a gun laser would require me to fire a raycast every frame and draw a line from my fire point to my hit point the problem is that the raycast seems slow so when i turn its left behind for a couple frames.

what i want is a line drawn from my players gun everyframe to act as a layer
Title: Re: How to make Gun Laser
Post by: djaydino on November 18, 2017, 12:14:43 PM
Hi,
Did you change the interval on the raycast action.
if it is 1 it should send a cast every frame.

The reason might be that you are rotating very fast and you see multiple lines.
if so it is not behind in frame but you can see the line draw from the frames before.