Hello!
I have another problem. I was following Sparen's tutorial for making snaking lasers, but the bullets don't appear at all. I'm not sure what to do.
Here is the script:
task MainTaskA{
while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){
let wait = 180;
loop(wait){yield;}
fireA;
}
task fireA{
let px = GetPlayerX();
let py = GetPlayerY();
let angleT = 0;
ascent(i in 0..12){
let obj = CreateCurveLaserA1(bossX, bossY, 4, GetAngleToPlayer(objBoss) + i*360/12, 60, 18, C_LASER_RED, 10);
SnakePattern(obj, 1);
}
}
task SnakePattern(obj, dir){
let wvel = 1*dir;
ascent(i in 0..12){
ObjMove_AddPatternA2(obj, i*30, NO_CHANGE, NO_CHANGE, NO_CHANGE, wvel, NO_CHANGE);
wvel *= -1;
}
}
}