Well, I suppose that you could use an event-based algorithm to construct the Fireball object.
Afterwards, it would be a simple matter of mathematical equations to manipulate the positioning of the object. Alternatively, a BodyMover could work for this purpose.
In custom-notation, I presume that this is what you desire:
FireBall = Obj.Create("Sphere");
Mouse = Obj.Create("MouseObject",FireBall);
Sub Fire(){
//Further expressions here
}
Mouse.ButtonClicked:Execute(Fire);
The vast majority of the "issue" lies within mathematical manipulation, which I assume that you are capable of devising yourself via the trial-error method. |