Guest User

Untitled

a guest
Sep 14th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. task fireA{
  2. while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){
  3. wait(380);
  4. let lpcnt = 0;
  5. loop(4){
  6. let laser = CreateStraightLaserA1(ObjMove_GetX(objBoss),ObjMove_GetY(objBoss),90*lpcnt,300,20,150,7,200);
  7. lasercontrol(laser);
  8. bulletcontrol(laser);
  9. lpcnt++;
  10. }
  11. }
  12. }
  13.  
  14. task bulletcontrol(laser){
  15. while(!Obj_IsDeleted(laser)){
  16. let x = ObjMove_GetX(laser);
  17. let y = ObjMove_GetY(laser);
  18. let a = ObjStLaser_GetAngle(laser);
  19. let len = ObjLaser_GetLength(laser);
  20. let num = 8;
  21. ascent(i in 0..num){
  22. let dist = i*len/num;
  23. let shot = CreateShotA1(x + cos(a)*dist, y + sin(a)*dist, 2, 90, 45, 10);
  24. }
  25. wait(10);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment