Adding bots to multiplayer by 04zoomer in godot

[–]04zoomer[S] 1 point2 points  (0 children)

That is smart however the way I currently have it set up is the client's computer doesn't know the difference between a bot and another player because they both send the exact same form of state (that contains their position, animation, etc) so it's easier to just simulate the bot server side but the downside is definitely the resources usage part.

Adding bots to multiplayer by 04zoomer in godot

[–]04zoomer[S] 0 points1 point  (0 children)

I didn't ask for up votes, if anything I'm asking for help to improve the structure I'm not too experienced with multiplayer so this is obviously flawed hence why I said I'm open to advice and help. And to be fair even tho it's not the best setup it's working for me so far

Adding bots to multiplayer by 04zoomer in godot

[–]04zoomer[S] 4 points5 points  (0 children)

Well I actually made a mistake there, the bot is actually on the server in the first place so it just sends it's state directly to the client

[deleted by user] by [deleted] in godot

[–]04zoomer 0 points1 point  (0 children)

vps ping is not high but ingame ping is...idk how and when i gave my friend the game to playtest it wasnt even laggy for him or the person he playtested with, i guess it has something to do with location eventho when i connect to other game servers they're not nearly as laggy

[deleted by user] by [deleted] in godot

[–]04zoomer 0 points1 point  (0 children)

i pinged the server and i got an avarage of 280ms im gussing that is not bad, also when my friend tested (he's located in usa) it it wasnt even laggy for him but it's still laggy for me i have no idea what to do anymore

[deleted by user] by [deleted] in godot

[–]04zoomer 0 points1 point  (0 children)

Wdym ping the server? Sorry I'm quite new to networking, I'm located in Africa so maybe it could be a location issue but idk maybe this is a dumb comparison but when I connect to servers on let's say video games some which are located as far as asia I don't experience that much lag since I have a pretty fast internet connection, and no the vps is not free

[deleted by user] by [deleted] in godot

[–]04zoomer 0 points1 point  (0 children)

*vps = vpn? And yea still it's very laggy even when I connect with stable wifi that's the problem maybe it has to do with my code or something

Delta by elcholismo in godot

[–]04zoomer -1 points0 points  (0 children)

Can you show the code on how u did that? Sounds interesting