# Help: Levels in Glacier

That actually had the same effect

no wait everyone just wait im testing his code to see whats wrong

``````yak_vector = Vector.subtract(yak.pos, hero.pos)
``````

you have yak.pos and heros.pos backwards

1 Like

I tried it out with Ritic and Illia didn’t work it is the order of when he does everything

1 Like

That didn’t do the trick(I test out the updated code so I can give the heads up weather it is good or bad code)

1 Like

and since they are swapped it causes the hero’s last code to produce ans error.

``````hero.move(moveToPos)
``````
1 Like

what gear do you have @milton.jinich

1 Like

see it works

1 Like

I use ritic and Boots of leaping(if you do this level right you don’t need any armor if you do the level right

1 Like

and the fact that you are on level 28 means that you have not completed every non sub level

1 Like

i have once before dude

1 Like

i made another account like several people do

1 Like

I like to stick to one

1 Like

why it is fun going through and seeing if you can get a higher level or more gems than the last time

1 Like

but anyways we are getting off topic lol

1 Like

But the real question is did @Dragonlouis complete the level

1 Like

idk he never said but now we know i was right at least

2 Likes

Oh, @Archipelago-Gold I just got yak.pos and hero.pos mixed up when subtracting.

1 Like

yeah did you fix it because that was what i have been saying lol

1 Like

Ok, like, I absolutely do not understand this. Can someone explain?

``````# Incoming oscars! (That's military speak for ogres).
# You will need to calculate their angle of attack.
# Use that angle to command your Griffin Bombers!

while True:
enemy = hero.findNearestEnemy()
if enemy:
# Find the vector of attack

# Use trigonometry to find the the angle in Radians!

# The answer must be in Degrees!
# To convert Radians to Degrees multiply by (180 / Math.PI)

# Say the angle!
``````
1 Like