Hi. Just to say I'm new-ish to Dnh and I would like to know how to script certain things (mostly about bullet patterns).
1. I've been trying to script to make a spiral of bullets, like the beginning of Hina Kagiyama's last spell card on MoF. I suppose it has something to do wit 'ascent'? Or 'descent'? I'm such a ⑨. I mean, something like the enemy fires 1 bullet down, the next one right after (at about 10 degrees to the right/left, and over and over).
2. For me, it's impossible to to make something fire at say like 30 frames, and have something else fire at 45 frames. I've been doing something like this:@MainLoop
{
let px = GetPlayerX();
let py = GetPlayerY();
let ex = ObjMove_GetX(objEnemy);
let ey = ObjMove_GetY(objEnemy);
let angleToPlayer = atan2(py - ey, px - ex);
if(frame == 30){
let obj = CreateLooseLaserA1(ex, ey, 2, angleToPlayer, 20, 10, DS_ICE_PURPLE, 10);
}
if(frame == 45){
let obj2 = CreateLooseLaserA1(ex, ey, 5, angleToPlayer, 200, 50, DS_ICE_RED, 10);
}
frame = 0;
}
If I do something like that, it just comes up with errors and all that stuff.
3. How the hell do you create tasks? Or external scripts? I've always been confused by them. What I'm interested in more is external scripts where you can load bullet patterns and spellcards and all that stuff, right?
4. Could someone please provide me with greater explanation for mathematical and syntax functions. They are very WTH. Never fully understandable.
Thanks in advance.
fonduemaster