Hello ,problem here,i wanted to make a bot that help my pac-mans understand where enemy come from and if they are in the dangerous range (too close of them) to move closer to safe zone.
The first idea that comes in mind is to use pyautogui to capture the moving enemies,but i want to move only on dangerous range,i will attach the photo to a better visual explanation!Thank you!
#π First self-challenge as a beginner
9 messages Β· Page 1 of 1 (latest)
@terse trellis
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
you could take a screenshot of the game and check specific pixel locations if there is an enemy rgb color on it
Thank your for your answer!The problem is,they are a bunch of colors,they come from the same path so i was thinking to make a square where the pyautogui to check for pixel location change.But the thing is i need to move when they are too close,so at the same time,if they are too close (to keep a safe range )
Could you send a video how the game works? just so I could give a clearer answer
idk if this is an appropriate beginner challenge
but i do not know pyautogui maybe it is easy
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.