Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script_enemy_main{
- let CSD = GetCurrentScriptDirectory;
- let imgFam = CSD ~ "system\Familiar1.png";
- @Initialize{
- SetLife(50);
- LoadGraphic(imgFam);
- }
- @MainLoop{
- SetCollisionA(GetX,GetY,16);
- SetCollisionB(GetX,GetY,16);
- yield;
- }
- @DrawLoop{
- SetTexture(imgFam);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,88,90);
- SetGraphicScale(0.5,0.5);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetX,GetY);
- }
- @Finalize{}
- task mainTask{
- yield;
- fire;
- }
- task fire{
- loop{
- CreateShot01(GetEnemyX,GetEnemyY,7,GetAngleToPlayer,AQUA02,10);
- wait(5);
- yield;
- }
- }
- function wait(w){loop(w){yield;}}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment