Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // tornado centre bubble bullet
- task balloonBullet(obj,x,y,v,dir) {
- ObjShot_Regist(obj);
- ObjMove_SetPosition(obj,x,y);
- ObjRender_SetPosition(obj,x,y,0);
- ObjMove_SetAngle(obj,90);
- ObjMove_SetSpeed(obj,1);
- ObjShot_SetGraphic(obj,230);
- ObjShot_SetDelay(obj,0);
- while(!Obj_IsDeleted(obj)) {
- ObjText_SetText(b1,ObjMove_GetY(obj));
- yield;
- }
- }
- // Inside the floor obj while loop
- while(! Obj_IsDeleted(obj)) {
- if(IsIntersected_Line_Circle(ObjRender_GetX(obj)-128, // xpos begin rectangle
- ObjRender_GetY(obj)-64, // ypos begin rectangle
- ObjRender_GetX(obj)+128, // xpos end rectangle
- ObjRender_GetY(obj)+64, // ypos end rectangle
- 8, // size of rectangle
- ObjMove_GetX(balloonObj), // xpos of balloon
- ObjMove_GetY(balloonObj), // ypos of balloon
- 8) // radius of smoke part collision
- ) {
- ObjText_SetText(b2,"yes"); ObjMove_SetSpeed(balloonObj,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement