Making an event move along with the mouse cursor and rotate it accordingly is an important feature for any action game, especially if you're creating unique projectile skills. Below, I'll show you how to create 2 projectiles: Projectiles that move toward the mouse cursor direction and projectiles that move along with the mouse cursor (chasing).
Projectile moves toward mouse cursor
Projectile moves along with mouse cursor
While this effect isn't the most common, you can still see it in games like Breath of the Wild or Immortal Fenyx Rising, where when you shoot an arrow, you can control its flying path. To achieve this, we simply just need to use moveToPosition('cursor', true), that's it. The true part is rotation. If you see it to false, the event will only move along with the cursor but not rotate along with it.
Note: Events that use any rotation feature need to have their graphics pointing upward.