I have a ninja, he's throwing stars at baddies. Baddies begin to overwhelm the little ninja and he uses his special power to teleport to the relative position of the mouse pointer, successfully avoiding danger and allowing him to continue his pillaging of the baddies.
If possible how would I accomplish this with a key-press? So I press the space bar and the ninja teleports to the mouse coordinates?
Thanks and sorry if it's a dumb question.