Making an Event Jump to the player?

Hi. I'm trying to make it so an event can jump to a player via a script call to achieve a "projectile" effect and I'm having some issues.
I managed to make it so the event jumps to variables containing the players X and Y, but the event jumps way off screen for some reason. Not sure what I'm doing wrong.
Here's what I attempted to use.
jump($game_variables[12],$game_variables[13])
When and were do you assign values to that Variables 12 and 13?

If this is for a Projectile, why not using the Eventcommand "Set Event Location"?
It would Teleport that Event directly to that position without jumping over the Map.

This Thread could be very Helpful:

In your case this should Teleport EventID1 to the Position of the Player.

$game_map.events[1].moveto($game_player.x, $game_player.y)

for the Jump with Eventid1 jump to Player it would be:

jump($game_player.x - $game_map.events[1].x, $game_player.y - $game_map.events[1].y)

and here Edited so it uses the target chosen in the Moveroute Command:

jump($game_player.x - $game_map.events[self.id].x, $game_player.y - $game_map.events[self.id].y)
When and were do you assign values to that Variables 12 and 13?

If this is for a Projectile, why not using the Eventcommand "Set Event Location"?
It would Teleport that Event directly to that position without jumping over the Map.

This Thread could be very Helpful:

In your case this should Teleport EventID1 to the Position of the Player.

$game_map.events[1].moveto($game_player.x, $game_player.y)

for the Jump with Eventid1 jump to Player it would be:

jump($game_player.x - $game_map.events[1].x, $game_player.y - $game_map.events[1].y)

and here Edited so it uses the target chosen in the Moveroute Command:

jump($game_player.x - $game_map.events[self.id].x, $game_player.y - $game_map.events[self.id].y)
Well, the reason I wanted to use the jump feature is because a transfer would be instantaneous, without any time for the player to move out of the way. With the jump there's a few frames before it gets to the player, so it better gives the illusion of say, a grenade or energy ball coming at the player without the awkwardness of 4 direction movement.
What you wrote seems to be working though, so thanks!
I was just curious. Thanks for explaining, and good to hear that it works.

Original thread: https://forums.rpgmakerweb.com/threads/making-an-event-jump-to-the-player.144160/