Thanks a lot:pray:
Line 8 says,
# (Look below at how to get x and y from items.)
This is telling you that lines 9, 10, and 11 should be exactly like lines 17, 18, and 19 except using flag instead of item. Try that.
Thank you MunkeyShynes I’m going to try this.
After making the changes, did you click on SUBMIT or RUN? When using flags, you must click SUBMIT to test your code.
yes I did , when I use flags , hero stopped in his location
It’s hard to tell for sure in the screen shot, but it looks like the last character in line 10 is an upper case X. It should be lower case.
Yes, thank you very much ,its work now:pray: