0

Can you make bots that follow a user in game using phyton

I am pretty new to phyton I like playing games so I taught later is it possible to make a bot that has a user that it walks behind? The bot would need to jump and walk in a 3d game called trove the whole code would contain only PHYTON 3? If not please tell me how you would make it or let me see a code. Thanks Victor! :D

25th May 2020, 10:45 PM
Victor
Victor - avatar
11 Réponses
0
That sounds like a really complicated problem to be honest. By the way, Python 3 is always preferred. First of all you need to search for a python library that lets you send keystrokes with code. For example send a 'space keystroke' command with code which would make the player jump. After that you would have to create the logic, "when to press the keys and what keys". Here comes the hard part. You would have to use an image analyzer that detects what you want, the player. There are some 3rd party libraries that let you do this but it will be very hard to find one that is specifically made for the task you want, so you would have to make your own one. Though this is a machine learning problem that requires some advanced programming knowledge into neural networks and theory. Not sure if you want to jump into it as it can get really complicated especially if you arent too familiar with programming in generall.
26th May 2020, 10:34 PM
Panagiotis Iatrou
Panagiotis Iatrou - avatar
+ 1
Okay Ill just learn what I can and on the end Ill do that thanks :D
26th May 2020, 10:36 PM
Victor
Victor - avatar
0
This question is very vague. Could you explain more?
26th May 2020, 3:51 PM
Panagiotis Iatrou
Panagiotis Iatrou - avatar
0
What more info would you need?
26th May 2020, 10:21 PM
Victor
Victor - avatar
0
Is this supposed to be implemented in your own game or is it just a bot that controls the player in Trove? Also what do you mean with "make a bot that has a user that it walks behind".
26th May 2020, 10:24 PM
Panagiotis Iatrou
Panagiotis Iatrou - avatar
0
Its a bot that controls the second player and walks behind the first player
26th May 2020, 10:26 PM
Victor
Victor - avatar
0
2 account would follow 1st account
26th May 2020, 10:26 PM
Victor
Victor - avatar
0
Sorry for the lack of information ...
26th May 2020, 10:28 PM
Victor
Victor - avatar
0
Ill checkout your game :P
26th May 2020, 10:36 PM
Victor
Victor - avatar
0
Thanks :D
26th May 2020, 10:37 PM
Panagiotis Iatrou
Panagiotis Iatrou - avatar
0
Yes you can but bots need to use machine learning with pygame or kivy or any other gui library to make game
27th May 2020, 8:01 PM
Abdelgayoom Adam
Abdelgayoom Adam - avatar