The trick with minusing coordinates is to always do target position minus character position. That's to say, if you want the vector starting at vector
A and going to vector
B then it's
If you imagine vector as arrows, then it's the tip of the arrow minus the nock of the arrow.
var direction = (hero.get_global_position()-get_global_position()).normalized()