Can someone help me?
I keep getting this error message whenever I play my script.
---------------------------
ScriptError「yadayadayadayadaydayady.....]
---------------------------
Bullet1は未定義の識別子です(20行目)
↓
Bullet1(a, b, c);
}
if(frame==20){
Sinuate Laser}
~~~
---------------------------
OK
---------------------------
Here is the code I have.
#TouhouDanmakufu
#Title[wkbcvjvhbd]
#Text[Boss Initialization with almost everything you could possibly need stuck in @Initialize]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let frame = 0;
@Initialize {
SetLife(1000);
SetTimer(50);
SetEffectForZeroLife(180, 100, 1);
SetMovePosition02(GetCenterX, GetCenterY, 3);
}
@MainLoop {
SetCollisionA(GetX, GetY, 32);
SetCollisionB(GetX, GetY, 24);
frame++;
if(frame==10){
Bullet1(a, b, c);
}
if(frame==20){
Sinuate Laser}
frame = 0;
yield;
}
}
@DrawLoop {
}
@Finalize {
}
task Bullet1(a, b, c){
let timer=30;
while(timer>0){
let 1=Obj_Create(OBJ_SHOT);
Obj_SetPosition(1, GetX, GetY);
Obj_SetAngle(1, rand(0, 359));
Obj_SetSpeed(1, rand(1, 5));
ObjShot_SetGraphic(1, RED01);
while(Obj_BeDeleted(1)==false) {
yield;
}
}
}
task Sinuate Laser{
let obj1=Obj_Create(OBJ_SINUATE_LASER);
Obj_SetPosition(obj1, GetX, GetY);
Obj_SetAngle(obj1, GetAngleToPlayer);
Obj-SetSpeed(obj1, rand(1, 5));
ObjSinuateLaser_SetLength(obj1, 40);
ObjSinuateLaser_SetWidth(obj1, 10);
yield;
}
}
I would really like some help on this as this has really been annoying me for the past few hours.