Help: Levels in Glacier

He told you exactly what to do, follow the end instructions.

1 Like


What’s wrong?

1 Like

you need to do hero.pos I think.

1 Like

do it like this

vector = Vector.subtract(hero.pos, enemy.pos)
1 Like

You can’t subtract hero and enemy.pos, it should be hero.pos

1 Like

Tried that.


cannot read property of subtract undefined or something

1 Like

You need to do capital V

1 Like

The V in Vector.subtract should be capitalised.

1 Like

It hits a little bit to the left of the enemy

1 Like

Try switching enemy.pos and hero.pos around.

1 Like


@Eric_Tang help?

1 Like

Okay, do not do that.

1 Like

@Dragonlouis instead of
radians = Math.atan2(vector.x,vector.y)
dont you think that the y should come first?
so do this
radians = Math.atan2(vector.y,vector.x)

1 Like

That actually dosen’t work.

1 Like

image

1 Like

I know but just saying at least for me it gives a error.

1 Like

well for me it gives success and I pass the level

1 Like

My bad I forgot something your right.

2 Likes


Uh, @Falcons118, @Eric_Tang? not working.

1 Like

@Dragonlouis you have 2 vector.y instead of vector.y,vector.x

1 Like