playMaker

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

Ofonna

  • Full Member
  • ***
  • Posts: 230
    • View Profile
How to make Gun Laser
« on: November 16, 2017, 07: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: 4462
    • View Profile
    • jinxtergames
Re: How to make Gun Laser
« Reply #1 on: November 18, 2017, 10:14:43 AM »
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.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions