To make this worse, I solved this is Coffee Script instead of Python
ok? how do i do it in python and i will be right back
So on line 8 in the last screenshot you shared, it should be
if enemy:
You should also delete line 9
And as for the move command, you have to change the x so that they actually move, because if it is still the same, they will keep movong to their current position
So to change the x, you just need to add +10
So it will look like this: "x": friend.pos.x + 10
i am back how do i do it in python
Try what i told you here, it should work fine
it did not work what do i do
Can u please post ur newest code
I meant like copy it and paste it in between back ticks using this button </>
Yeah the last thing you have to do is removing == friend.findNearestEnemy()
in line 8
So only if enemy:
stays
Well, you were supposed to beat it with the code you have now.
Youre welcome, please mark thr post that helped you most as a solution so the topic would close :]
Great Job! If you need help on another level just @ me and I will do my best to help. And yes, what Aya said, mark the post that helped you the most as the solution. Happy coding.