I’m hoping I’m missing something obvious here. I keep running out of time on the level. and I’m not sure what I’m doing wrong. This is my code:
flag = hero.findFlag()
pass is a placeholder, it has no effect.
# Pick up the flag.
# Automatically move to the nearest item you see.
item = hero.findNearestItem()
position = item.pos
x = position.x
y = position.y
please let me know if I really have missed something. Do I need to add a flag colour?