I made TMove03 to make the use of ObjMove_SetDestAtWeight. It's in MoveFunction.txt.
No errors (except I had to add a yield; in CheckBossExists). I still can't manipulate the seals.
In Spell7.txt I have:
task mainTask{
objBoss=TDrawBoss;
TEnemyHitboxStart;
Cutin("Fluttering Illusions\"Semi-Invisible Shadows -Night-\"",14);
TShoot01;
yield;
}
task TShoot01{
ObjMove_SetDestAtWeight(objBoss,stgx,GetStgFrameHeight()/4,10,5);
wait(70);
fam1=FDrawFamiliar(objBoss,GetEnemyX,GetEnemyY,0,0,0,2.5,255,255,255,255);
fam2=FDrawFamiliar(objBoss,GetEnemyX,GetEnemyY,0,0,0,-2.5,255,255,255,255);
yield;
ObjMove_SetDestAtWeight(fam1,stgx*2/10,GetStgFrameHeight()/4,10,5);
while(ObjEnemy_GetInfo(objBoss,INFO_LIFE)>=0){
loop(50){
yield;
}
}
}
In DrawFunctions.txt I have:
function TDrawBoss{
let objBoss=ObjEnemy_Create(OBJ_ENEMY_BOSS);
ObjEnemy_Regist(objBoss);
let imgRumia=GCSD~"img/rumia.png";
ObjPrim_SetTexture(objBoss,imgRumia);
ObjSprite2D_SetSourceRect(objBoss,2,1,63,62);
ObjSprite2D_SetDestCenter(objBoss);
ObjRender_SetPosition(objBoss,-25,0,0);
return objBoss;
}
function FDrawFamiliar(BOSS,x,y,z,xadd,yadd,zadd,alpha,r,g,b){
let xspin=0;
let yspin=0;
let zspin=0;
let imgFam=GCSD~"img/etama2.png";
let obj=ObjPrim_Create(OBJ_SPRITE_2D);
ObjPrim_SetTexture(obj,imgFam);
ObjSprite2D_SetSourceRect(obj,193,113,256,176);
ObjSprite2D_SetDestCenter(obj);
ObjRender_SetPosition(obj,x,y,z);
ObjRender_SetAlpha(obj,alpha);
ObjRender_SetColor(obj,r,g,b);
TSpin;
CheckBossExists;
return obj;
task TSpin{
while(!Obj_IsDeleted(obj)){
ObjRender_SetAngleXYZ(obj,xspin,yspin,zspin);
xspin+=xadd;
yspin+=yadd;
zspin+=zadd;
yield;
}
}
task CheckBossExists{
while(!Obj_IsDeleted(obj)){
if(ObjEnemy_GetInfo(BOSS,INFO_LIFE)<=0){
Obj_Delete(obj);
}
yield;
}
}
}
God Danmakufu all I want to do is move an image around :c
Thanks for all your time and help.
e: Fixed it all! \^o^/