Guest User

Untitled

a guest
Dec 20th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. task FairyMaintenance(fairy){
  2. let ex = ObjMove_GetX(objw);
  3. let ey = ObjMove_GetY(objw);
  4. while(ObjEnemy_GetInfo(obj, INFO_LIFE) > 0 && ObjEnemy_GetInfo(fairy, INFO_LIFE) > 0){
  5. ex = ObjMove_GetX(objw);
  6. ey = ObjMove_GetY(objw);
  7.  
  8. ObjEnemy_SetIntersectionCircleToPlayer(fairy, ex, ey, 16);
  9. ObjEnemy_SetIntersectionCircleToShot(fairy, ex, ey, 16);
  10. yield;
  11. }
  12.  
  13. ObjEnemy_SetLife(fairy, 0);
  14.  
  15. if(ObjEnemy_GetInfo(obj, INFO_LIFE) > 0){
  16. ObjMove_SetDestAtFrame(objw, 0, -150, 60);
  17. loop(60){yield;}
  18. ex = ObjMove_GetX(objw);
  19. ey = ObjMove_GetY(objw);
  20. SetCommonData("tewix",ex);
  21. SetCommonData("tewiy",0);
  22. }else{
  23. ex = ObjMove_GetX(objw);
  24. ey = ObjMove_GetY(objw);
  25. SetCommonData("tewix",ex);
  26. SetCommonData("tewiy",ey);
  27.  
  28. loop(10){yield;}
  29. }
  30.  
  31. Obj_Delete(fairy);
  32. loop(10){yield;}
  33. CloseScript(GetOwnScriptID());
  34. }
Advertisement
Add Comment
Please, Sign In to add comment