~Hakurei Shrine~ > Rika and Nitori's Garage Experiments
I'm really lost @_@
Halca:
--- Quote from: Naut on May 23, 2009, 12:23:40 AM ---I dunno, lol.
--- End quote ---
ily :P
Halca:
Holy doo-doo... Familiars are confusimafying!
Could some please tell me how I screwed up here?:
--- Code: ---#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);
v = GetArgument;
frame++;
if(frame ==120){
CreateEnemyFromFile("script\Kakome\WhiteDoll.txt", 300, 300, 2, angle + GetAngleToPlayer, 2);
CreateEnemyFromFile("script\Kakome\WhiteDoll.txt", 180, 300, 2, angle + GetAngleToPlayer, 2);
angle = 0;
frame = 60;
}
}
@DrawLoop {
SetColor(255,255,255);
SetRenderState(ALPHA);
SetTexture(Boss);
SetGraphicRect(64,1,127,64);
DrawGraphic(GetX,GetY);
}
@Finalize {
DeleteGraphic(Boss);
}
}
--- End code ---
Naut:
We'll need the script for WhiteDoll.txt as well, love. A brief description of what you're trying to accomplish in the spellcard might aid in finding the problem as well.
Halca:
Oopsy.... ^_^;;
Ok, my goal here is to have destructable familiars come in your
direction firing bullets while the boss is doing some kind of attack (I'll script it later)
WhiteDoll.txt:
--- Code: ---#TouhouDanmakufu
#Title[White Doll]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let frame = 0;
let angle = 0;
let BossImage = "script\Kakome\img\whitedoll.png";
@Initialize {
LoadGraphic(BossImage);
SetLife(10);
SetDamageRate(10, 10);
SetEnemyMarker(true);
}
@MainLoop {
SetCollisionA(GetCenterX, GetCenterY, 32);
SetCollisionB(GetCenterX, GetCenterY, 16);
frame++;
if(frame==120){
loop(20){
CreateShot01(GetCenterX, GetCenterY, 3, angle, WHITE32, 5);
angle+=360/20;
}
frame = 60;
angle = 0;
}
}
@DrawLoop {
SetColor(255,255,255);
SetRenderState(ALPHA);
SetTexture(BossImage);
SetGraphicRect(64,1,127,64);
DrawGraphic(GetCenterX,GetCenterY);
}
@Finalize {
DeleteGraphic(BossImage);
}
}
--- End code ---
Naut:
Delete everything in WhiteDoll.txt before script_enemy_main (the stuff that begins with #). I'll have to test this tomorrow, on the way to bed, so expect a response then if this doesn't work.