Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. // using arrays for shot graphics (to make a rainbow)
  2.  
  3. 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)
  4. let gra=0; //this is the variable that will switch between shot graphics, allowing to change graphics
  5.  
  6. let angle=rand(0,360);
  7. let num=10;
  8. let loopnum=20;
  9. ascent(i in 0..loopnum){
  10. ascent(a in 0..num){
  11. CreateShotA1(ex,ey,2,angle+a*360/num,graphic[gra],10);
  12. }
  13. gra++;//increases the gra variable, allowing to change graphics
  14. gra%=length(graphic);//resets the gra variable to 0 once it reaches the maximum value of the array
  15. wait(5);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement