So currently i’m trying to optomize my tower defense game, i found a way - i need to delete humanoids in my entities and render them on client side, i’m not sure i’m doing everything right but i’m trying to do what people said to me, but lets skip that part, it’s for my other post.
So, i’m tring to do smooth turn when entities are changing walk direction. I want to achieve turns like on this image
Not this
What can i use to do that accurate and while using entity’s walk speed?
Soo i have tips for your optimization and with this i can tell you: make more waypoints, you see enemy goes to a waypoint and looks at it, soo if you would make 5 waypoints per turning point, it will don’t lag because it’s only 5 parts or positions idk how you’ve made it. For optimization i’m heavily advice to use linear interpolation for moving entities on server and then animate them on client with animator editor, humanoids can be laggy because they have a lot of propertiess
I already know this tip, i’m trying to do the same, but i still have problem with turns beacuse i don’t want to spawn so much waypoints on 1 turn, and it will be looking a little bit weird.
But still i don’t want to spawn so much waypoints just for 1 turn, i don’t like the idea beacuse i have map with so much turns. It will take so much time
soo use more, you can that waypoints aren’t parts but table of positions, it would be a lot better, maybe use bezier curves to do this, it needs 3 points
I don’t like the idea to use more then 4 waypoints (but if i will use less than 4 it still won’t look smooth enough like in other tower defense games), thanks for telling about bezier curves, i’ll try.
Ok, i’ll try, thanks! Also i hope with this i will be able to use bezier curve with static speed of zombie walk speed (so zombie won’t speed up or slow down)
It looked more simple, so i used it. It works! Thanks for helping! =)
From problems i can say only that at first waypoint my zombie freezes for like 0.15 second (+ -)
But for now i just put the second waypoint at first to make players don’t see this freeze bug, but i hope i will find way to fix that.