Hello there! I’m trying to make a fireball script that sends the fireball towards the player’s mouse. I would like some help on getting started on with the script. Can I get some tips/advice and a little push in the right direction?
all help is appreciated <3
Calculate the direction from the where the fireball will start to the target position.
let starting position be p1.
let target position be p2.
direction from p1 to p2 -
local d = p2 - p1
Use a body velocity to move the fireball to the target.
In this case the target position is your mouse hit position.
I think this tutorial might help you understand the concepts! Read it carefully!