Lag problems

I am trying to pan the camera to an NPC when the distance from Character to NPC is over 50, i have done this but it lags to much because it has to calculate the distance every time. So i have identified the problem but i have come up with a solution.
The game:

“have not” instead of “have”, just a typo

Lol… typo’s hurt.

You have ot get rid of all of your on game updates that is what’s causing all of the lag.

here you go

1 Like