Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // using arrays for shot graphics (to make a rainbow)
- let graphic=[DS_BALL_BS_RED,DS_BALL_BS_ORANGE,DS_BALL_BS_YELLOW,DS_BALL_BS_GREEN,DS_BALL_BS_SKY,DS_BALL_BS_BLUE,DS_BALL_BS_PURPLE]; // define shot graphics here (i just put 3 but u can do more)
- let gra=0; //this is the variable that will switch between shot graphics, allowing to change graphics
- let angle=rand(0,360);
- let num=10;
- let loopnum=20;
- ascent(i in 0..loopnum){
- ascent(a in 0..num){
- CreateShotA1(ex,ey,2,angle+a*360/num,graphic[gra],10);
- }
- gra++;//increases the gra variable, allowing to change graphics
- gra%=length(graphic);//resets the gra variable to 0 once it reaches the maximum value of the array
- wait(5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement