Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. stage {
  2. backdrop White("gallery:General/White")
  3. let list = [];
  4. let index = 0;
  5.  
  6. actor Kocka {
  7. costume Kocka_1("gallery:Objects/Cube 1")
  8. costume Kocka_2("gallery:Objects/Cube 2")
  9. costume Kocka_3("gallery:Objects/Cube 3")
  10. costume Kocka_4("gallery:Objects/Cube 4")
  11. costume Kocka_5("gallery:Objects/Cube 5")
  12. costume Kocka_6("gallery:Objects/Cube 6")
  13. when stage.started{
  14. this.setPosition(0,0);
  15. this.size = 200;
  16. }
  17. when stage.keyPressed("space"){
  18. this.setPosition(-250,0);
  19. clearPenTrails();
  20. this.show();
  21. list = [];
  22. for(let i = 1; i<= 6; i++){
  23. for(let i = 1;i<= Math.randomBetween(10,15);i++){
  24. this.turnRight(Math.randomBetween(-180,180));
  25. this.nextCostume();
  26. this.wait(0.05);
  27. }
  28. list.push(costumeId);
  29. this.heading = 90;
  30. this.stampCostume();
  31. this.x += 100;
  32.  
  33. }
  34.  
  35. }
  36. }
  37.  
  38. actor Karika {
  39. default costume Piros("gallery:Objects/Ring Red")
  40. costume Kék("gallery:Objects/Ring Blue")
  41. costume Négyzet_Alap("gallery:Objects/Square Idle")
  42.  
  43. when clicked{
  44. this.nextCostume();
  45. this.say("");
  46. }
  47. when stage.started{
  48. this.setPosition(-200,-100);
  49. this.size = 150;
  50. this.setCostume(this.Piros);
  51. }
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement