02.01.2016, 19:45
I'm assuming there's no AI built in, so I'm building it myself currently. I'm not sure how I should let the bots walk though. My initial idea was to just turn them in the direction they need to move and play the walking-animation. On the client that looks absolutely perfect, but the position of the bot doesn't actually change on the server and at some point, on the client, the bot will teleport back. Is there a way to synchronize this properly and idealy have the server "play" the animation as well and update the position accordingly? I would rather not manually set the position of the bot on the server since this would probably just not look smooth (Especially since on each client the bot does move because of the walking-animation and the position would never really be accurate) and also I would have to manually find a speed-value for every instance. What is your recommended way of doing this?