About Pixel Movement
If there are any lags, what can i do to prevent them? Give me detailed information if you could. Maybe the amount of players, mobs, map size or whatever else it could be. I'd like to have this running smoothly when i use it, but only if it can run smoothly with many players in one map without LAG.
When you figure out how to fix it i will use it, until then I'll stick with things that do not lag.
Have you ever thought that maybe there's a way to code those issues away?
distance_to(atom/a) var dx = (px + pwidth / 2) - (a.px + a.pwidth / 2) var dy = (py + pheight / 2) - (a.py + a.pheight / 2) if(PixelMovement.distance == PixelMovement.EUCLIDEAN) return sqrt(dx * dx + dy * dy) else if(PixelMovement.distance == PixelMovement.BYOND) return max(abs(dx), abs(dy)) else return abs(dx) + ab(dy)