Mod edit: Please do not request solutions. The purpose of this board is to assist people with their code. Simply providing solutions is counter productive to the learning process. There are many people here willing and able to assist you with your code but we do not just give the answers. Thanks.
We do not request or give solutions in here. Please post your code according to the FAQ so we can assist you.
sorry im new, but can you please help ive been stuck for weeks
First you have to make hero.distanceTo(enemy4)
a variable. Then you have to say the distance to enemy 4
how do you make it variable
Please actually make an effort to learn. Please look at the code for enemy1 and do the same format for enemy4.
no u yeet!!!
I’m just only trying to help. You are using little effort and making it harder for me to help you. This level requires little effort and just telling you how to make a variable is literately telling the solution. Please review the dungeon or the early forest levels and try this level again.
i am just kidding
just hero.distanceTo(enemy4)
will do nothing except that the hero (aka, the computer) will calculate the current distance. variable is like what you did for enemy. instead of keeping hero.findNearestEnemy()
as itself, you abbreviated it to enemy
. so then, what will you name your distance to enemy4?
I’m pretty sure that this person’s problem has been solved already.
And it showed that it worked but it showed that I still need
to do see.
@Chaboi_3000 @Deadpool198 Can you remove the solution?
@Gabriel_Knight You can try making a topic about your problem in the bugs section. Maybe try resubmiting a few times? And please do not post solutions as it is against the Discourse rules.
Lydia
Okay. are you an admin?
I removed the solution.
No but Chaboi_3000 and Deadpool198 are.
Lydia
Thanks.
Lydia
20 chars
@Lydia_Song, actually, Chaboi is the admin…as Leaders and Co-Mods, Deadpool, Alex and I just have some of the capabilities.