Guest User

fam 1

a guest
Jan 22nd, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. script_enemy_main{
  2. let CSD = GetCurrentScriptDirectory;
  3. let imgFam = CSD ~ "system\Familiar1.png";
  4. @Initialize{
  5. SetLife(50);
  6. LoadGraphic(imgFam);
  7. }
  8. @MainLoop{
  9. SetCollisionA(GetX,GetY,16);
  10. SetCollisionB(GetX,GetY,16);
  11. yield;
  12. }
  13. @DrawLoop{
  14. SetTexture(imgFam);
  15. SetRenderState(ALPHA);
  16. SetAlpha(255);
  17. SetGraphicRect(0,0,88,90);
  18. SetGraphicScale(0.5,0.5);
  19. SetGraphicAngle(0,0,0);
  20. DrawGraphic(GetX,GetY);
  21. }
  22. @Finalize{}
  23. task mainTask{
  24. yield;
  25. fire;
  26. }
  27. task fire{
  28. loop{
  29. CreateShot01(GetEnemyX,GetEnemyY,7,GetAngleToPlayer,AQUA02,10);
  30. wait(5);
  31. yield;
  32. }
  33. }
  34. function wait(w){loop(w){yield;}}
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment