while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){
let angleT = GetAngleToPlayer(objBoss);
loop(13){
ascent(i in 0..1){
CreateShotA1(ObjMove_GetX(objBoss), ObjMove_GetY(objBoss), 2.5 - i/3, angleT, 406, 5);
}
ObjMove_SetAngularVelocity(obj, -10) ;
angleT += 360/12;
}
wait(50);
}
any ideas ? it doesn't spin like it...
You have to declare your "obj" before assigning your function to it, otherwise it won't do anything. And, your angular velocity is way too high, -10 will make your bullets spin so fast that they won't go anywhere, try something like -0.2. If I was you, I would do:
while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){
let angleT = GetAngleToPlayer(objBoss);
loop(13){
ascent(i in 0..1){
let obj = CreateShotA1(ObjMove_GetX(objBoss), ObjMove_GetY(objBoss), 2.5 - i/3, angleT, 406, 5);
let obj2 = CreateShotA1(ObjMove_GetX(objBoss), ObjMove_GetY(objBoss), 2.5 - i/3, angleT, 406, 5);
}
ObjMove_SetAngularVelocity(obj, -0.2) ;
ObjMove_SetAngularVelocity(obj2, 0.2);
angleT += 360/12;
}
wait(50);
}
I am sure of nothing though. I don't get why you used an "ascent", if you wanna slowdown the speed of your bullets, you can simply use "CreateShotA2".