Well with my most recent spellcard that includes familiars, things have gotten weird...
I get massive, crazy amounts of bullets all over the screen!
Here's what my scripts look like:
White Doll:
#TouhouDanmakufu
#Title[White Doll]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let v;
let frame = 0;
let angle = 0;
let BossImage = "script\Kakome\img\whitedoll.png";
@Initialize {
LoadGraphic(BossImage);
SetLife(10);
SetDamageRate(10, 10);
SetEnemyMarker(true);
}
@MainLoop {
v = GetArgument;
frame++;
if(frame==120){
loop(20){
CreateShot01(GetX, GetY, 3, angle, WHITE32, 5);
angle+=360/20;
}
frame = 60;
angle = 0;
SetMovePositionRandom01(rand(10, 50), rand(10, 50), 2, 100, 40, 348, 150);
frame = 60;
}
}
@DrawLoop {
SetColor(255,255,255);
SetRenderState(ALPHA);
SetTexture(BossImage);
SetGraphicRect(64,1,127,64);
DrawGraphic(GetX,GetY);
}
@Finalize {
DeleteGraphic(BossImage);
}
}
Obedience "Sacrificial White Doll":
#TouhouDanmakufu
#Title[Obedience "Sacrificial White Dolls"]
#Text[Sends dolls that fire bullets in rings.]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let frame2 = 0;
let frame = 0;
let angle = 0;
let Boss = "script\img\ExRumia.png";
@Initialize {
LoadGraphic(Boss);
SetLife(5000);
SetTimer(60);
SetDamageRate(10,10);
SetEnemyMarker(true);
SetMovePosition02(GetCenterX, GetCenterY - 100, 120);
}
@MainLoop {
SetCollisionA(GetX, GetY, 32);
SetCollisionB(GetX, GetY, 16);
CreateEnemyFromFile("script\Kakome\WhiteDoll.txt", 300, 300, 2, angle + GetAngleToPlayer, 2);
}
@DrawLoop {
SetColor(255,255,255);
SetRenderState(ALPHA);
SetTexture(Boss);
SetGraphicRect(64,1,127,64);
DrawGraphic(GetX,GetY);
}
@Finalize {
DeleteGraphic(Boss);
}
}
Pweese help @_@