playMaker

Author Topic: How to make Gun Laser  (Read 1429 times)

Ofonna

  • Full Member
  • ***
  • Posts: 230
How to make Gun Laser
« 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to make Gun Laser
« Reply #1 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.