so you're using physics then?
I haven't played the zelda game in question, so do you want them slowly drawn towards you as you hold? if so, what happens when they're right next to you? do they stay stuck there? These are questions I ask for the sake of this question, but also things that construct won't know until you tell it.
But for starters:
----------------------------------------
MouseKeyboard - Left Mouse Button is Down (Not on left mouse click)
-----Continue to draw the enemy in some way depending on what you need*
//assuming the enemy is always hovering in front of you in the direction you're facing:
MouseKeyboard - On Left Mouse button released
-----Set Force toward Position (hero.x,hero.y) Force: 0 - lerp(minimumforce,maximumforce,
clamp(1-(distance(hero.x,hero.y,enemy.x,enemy.y)/maxdistance),0,1))
-----------------------------------
if you don't know what lerp does, try this tutorial:
clamp keeps values within a certain range like clamp(x,min,max) will just give you x right back to you, unless it's lower than min, or higher than max, then it'll just give you min or max.
so clamp(5,0,100) = 5
clamp(-5,0,100) = 0
clamp(999,0,100) = 100
depending on whether you love math, and whether you understand lerp and clamp, that last part
[quote:eoriejul] clamp(1-(distance(hero.x,hero.y,enemy.x,enemy.y)/maxdistance),0,1)
will or won't make sense to you, feel free to ask if it doesn't make sense