i'm now trying parametric equations with my danmaku to make a heart but my issue is that the heart only spawns in one direction regardless of angle
task TFire (loopNum, speed, angle, shotID, delay) {
let hx;
let hy;
loop (loopNum) {
hx = (13 * cos(angle)) - (5 * cos(2 * angle)) - (2 * cos(3 * angle)) - cos(4 * angle);
hy = 16 * sin(angle)^3;
CreateShotA1(bossX + (2 * hx), bossY + (2 * hy), speed, angle, shotID, delay);
angle += 360/loopNum;
}
}
is there any way i can fix this to change the direction the heart is pointing? its always pointing at a 180 degree angle