Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task Glow {
- //Current task for the "leader" Bullet
- loop(4){
- let randir = rand(-0.5,0.5);
- Light = CreateShotB2(BossX,BossY-45,randir,-3,0,0.05,0,2,308,15);
- Glowtrail(Light); // Pass the bullet data from the "Light" variable to task Glowtrail
- wait(53);
- }
- }
- task Glowtrail(obj) { // Create a new variable name "obj" and let it store bullet data from the passed variable
- // in this case, it's the "Light" Variable
- //Current task for the disappearing bullet trail following the leading bullet
- while(!Obj_IsDeleted(obj)) // this means "while the "obj" variables still exist, do something in the next bracket
- { // Otherwise,skip every thing in the next bracket
- let LgtX = ObjMove_GetX(obj);
- let LgtY = ObjMove_GetY(obj);
- let MiniLgt = CreateShotA2(LgtX,LgtY,0,rand(0,360),0.001,0.1,74,11); // you need to create a new variable here
- wait(10);
- ObjShot_FadeDelete(MiniLgt);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement