Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[SOLVED] I'm confused with flags

I am having trouble getting my hero to walk to the coordinates of a flag that I put down. Can you tell me where I went wrong?

Your first two lines of code need to be in the While True loop for your hero to look for an enemy and flag for the whole time. Otherwise, they only see it the first second and won’t look again.

1 Like

Ohhhh, that makes so much more sense. Thanks a lot!