it keeps saying: Can’t read property “pos” of null. here’s my code.
item = hero.findNearestItem() if item: itemPos = item.pos
I don’t know python very well but i think you need to change the
Yes, you would need to check if an item exists before defining itemPos as the item’s position.