Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. stage {
  2. backdrop White("gallery:General/White")
  3. let dblist = [];
  4.  
  5. function Draw(Actor) {
  6. for(let i = 1; i <= Math.randomBetween(5, 20); i++) {
  7. Actor.nextCostume();
  8. this.wait(0.1);
  9. }
  10. }
  11.  
  12. when stage.keyPressed("space") {
  13. //TODO
  14. }
  15.  
  16. when stage.started {
  17. dblist = [];
  18. for(let i = 1; i <= 5; i++) {
  19. dblist.push(0);
  20. }
  21. }
  22.  
  23. actor Fruit {
  24. costume Apple("gallery:Objects/Apple Idle")
  25. costume Banana("gallery:Objects/Banana Idle")
  26. costume Orange("gallery:Objects/Orange Idle")
  27. costume Raspberry("gallery:Objects/Raspberry Idle")
  28.  
  29. when stage.started {
  30. this.size = 250;
  31. this.setPosition(100,0);
  32. }
  33.  
  34. }
  35.  
  36. actor Circle {
  37. costume Red("gallery:Objects/Ring Red")
  38. costume Blue("gallery:Objects/Ring Blue")
  39.  
  40. when stage.started {
  41. this.setPosition(-300, -70);
  42. }
  43.  
  44. }
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement