Hello, I'm new to the forums, and new to Danmakfu as well. I'm not quite sure if my first post should be a question, but I'll go for it!
Anyway, I want to make a gravity bullet have a trail following it, similar to Koishi's Rekindled "Embers of love" card, but with single bullets rather than clusters of them.
I did discover how to make gravity bullets, but the trail part is being a pain. Here's what I have so far.
-----
task Glow {
//Current task for the "leader" Bullet
loop(4){
let randir = rand(-0.5,0.5);
Light = CreateShotB2(BossX,BossY-45,randir,-3,0,0.05,0,2,308,15);
wait(53);
}
}
task Glowtrail {
//Current task for the disappearing bullet trail following the leading bullet
loop{
let LgtX = ObjMove_GetX(Light);
let LgtY = ObjMove_GetY(Light);
MiniLgt = CreateShotA2(LgtX,LgtY,0,rand(0,360),0.001,0.1,74,11);
wait(10);
ObjShot_FadeDelete(MiniLgt);
}
}
-----
(Sorry if the code is way too big, I felt like it isn't, but let me know if it is.)
I think I understand why the trail stops once a new "Light" bullet appears and instead follows the newer one, but I can't think of a way to get around it so I can have multiple gravity bullets with multiple trails on screen at once. I suppose I could just make a ton more variables, but it seems like there would be a better way to do this thing.
Also, the wait in the Glowtrail task isn't working how I'd like. The trails are too short, and adding more time to the wait makes the gaps in the trail bigger, which I don't want.
Thanks for the help!