Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task fire{
- loop{
- let sx = GetClipMinX;
- let sy = GetCenterY+rand(-100,100);
- let ex = GetClipMaxX;
- let ey = GetCenterY+rand(-100,100);
- sword(sx,sy,atan2(ey-sy,ex-sx),((ex-sx)^2+(ey-sy)^2)^0.5,15,4,90);
- wait(240);
- }
- }
- task sword(x,y,angle,length,width,graphic,delay){
- let obj = Obj_Create(OBJ_LASER);
- let x = 0;
- let y = 0;
- Obj_SetPosition(obj,x,y);
- Obj_SetAngle(obj,angle);
- ObjLaser_SetLength(obj,length);
- ObjLaser_SetWidth(obj,width);
- ObjShot_SetGraphic(obj,graphic);
- ObjShot_SetDelay(obj,delay);
- ObjShot_SetBombResist(obj,true);
- ObjLaser_SetSource(obj,false);
- wait(120);
- loop(25){
- CreateShot01((Obj_GetX(obj)+ObjLaser_GetEndX(obj))/2,(Obj_GetY(obj)+ObjLaser_GetEndY(obj))/2,rand(0.5,3),rand(0,359),14,0);
- }
- wait(15);
- Obj_Delete(obj);
- }
Advertisement
Add Comment
Please, Sign In to add comment