[SOLVED] Help plz hunting party


1 Like

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

1 Like

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

1 Like

i am back how do i do it in python

1 Like

Try what i told you here, it should work fine

1 Like

it did not work what do i do

1 Like

Can u please post ur newest code

1 Like

1 Like

I meant like copy it and paste it in between back ticks using this button </>

1 Like

1 Like

Yeah the last thing you have to do is removing == friend.findNearestEnemy() in line 8

So only if enemy: stays

1 Like

Well, you were supposed to beat it with the code you have now.

ok thanks for the help

1 Like

Youre welcome, please mark thr post that helped you most as a solution so the topic would close :]

3 Likes

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.

2 Likes