Guest User

Untitled

a guest
Aug 8th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Generate 5 random values from 1 to 9
  2. var points:Array = [];
  3. points.push(1 + FP.rand(9));
  4. points.push(1 + FP.rand(9));
  5. points.push(1 + FP.rand(9));
  6. points.push(1 + FP.rand(9));
  7. points.push(1 + FP.rand(9));
  8.  
  9. for each (var value:int in points)
  10. {
  11.     //Increase the score by the value
  12.     score += value;
  13.    
  14.     //Generate a particle for the value
  15.     switch (value)
  16.     {
  17.         case 1:
  18.             //Generate particle 1
  19.             break;
  20.         case 2:
  21.             //Generate particle 2
  22.             break;
  23.         //etc.
  24.     }
  25. }
Add Comment
Please, Sign In to add comment