Continuing the discussion from [SOLVED] Python Blind Distance:
enemyDistance = nearestEnemyDistance()
# If the enemyDistance is greater than 0:
if hero.distanceTo > 0:
# Say the value of enemyDistance variable.
I don’t know what I have to do to fix it… giving me errors
change that to enemyDistance it should work
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!
it is not doing anything
![Screen Shot 2020-12-20 at 9.56.47 AM|690x268](upload://8svCnpKnyFD7yf5Lns5adsJmcf.jpeg)
Then can you post yourr code.
sry I got it fixed… forgot to indent
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.