Ok, while making my boss I encountered a problem
I'm trying to get a wave of bullets to spawn again and again each time faster.
#TouhouDanmakufu
#Title[Darkness Sign "Blind from the Bottom"]
#Text[De-Coronation]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let angle2 = 500;
let angle = 0;
let imgExRumia=GetCurrentScriptDirectory~"img\ExRumia.png";
let imgExRumiaBack=GetCurrentScriptDirectory~"img\ExRumiaBack.png";
let frame = 0;
@Initialize {
SetMovePosition01(224,120,10);
SetGraphicRect(1,1,64,64);
LoadGraphic(imgExRumia);
LoadGraphic(imgExRumiaBack);
SetLife(1);
SetDamageRate(0, 0);
SetTimer(30);
CutIn(YOUMU, "Darkness Sign [Blind from the Bottom]", imgExRumia, 0, 0, 200, 600);
SetScore(500000);
}
@MainLoop {
SetCollisionA(GetX, GetY, 32);
SetCollisionB(GetX, GetY, 24);
if(frame==angle2){
CreateShot01(rand(1,448), 1, 7, 90, RED12, 20);
CreateShot01(rand(1,448), 1, 6, 90, RED12, 20);
CreateShot01(rand(1,448), 1, 5, 90, RED12, 20);
CreateShot01(rand(1,448), 1, 4, 90, RED12, 20);
CreateShot01(rand(1,448), 1, 3, 90, RED12, 20);
CreateShot01(rand(1,448), 1, 2, 90, RED12, 20);
frame = 0;
}
if(angle2<0){
angle2=1;
}
frame++;
angle++;
angle2--;
}
@DrawLoop {
SetAlpha(255);
SetTexture(imgExRumia);
SetGraphicRect(0,0,64,64);
DrawGraphic(GetX(),GetY());
}
@BackGround {
SetTexture(imgExRumiaBack);
SetGraphicRect(0,0,384,448);
DrawGraphic(224,240);
}
@Finalize {
}
}
Anyone know what's wrong with that?
Sorry for being such a noob :V