Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. stage {
  2. backdrop White("gallery:General/White")
  3.  
  4. when stage.keyPressed("space"){
  5. Toll.reDraw();
  6. }
  7.  
  8. actor Kocka {
  9. costume Kocka_1("gallery:Objects/Cube 1")
  10. costume Kocka_2("gallery:Objects/Cube 2")
  11. costume Kocka_3("gallery:Objects/Cube 3")
  12. costume Kocka_4("gallery:Objects/Cube 4")
  13. costume Kocka_5("gallery:Objects/Cube 5")
  14. costume Kocka_6("gallery:Objects/Cube 6")
  15.  
  16. when stage.started {
  17. this.setPosition(-280, 140);
  18. this.setCostume(Kocka_1);
  19. }
  20.  
  21. when clicked {
  22. this.nextCostume();
  23. }
  24. }
  25.  
  26. actor Szám {
  27. costume Nulla("gallery:Text/Zero")
  28. costume Egy("gallery:Text/One")
  29. costume Kettő("gallery:Text/Two")
  30. costume Három("gallery:Text/Three")
  31. costume Négy("gallery:Text/Four")
  32. costume Öt("gallery:Text/Five")
  33. costume Hat("gallery:Text/Six")
  34. costume Hét("gallery:Text/Seven")
  35. costume Nyolc("gallery:Text/Eight")
  36. costume Kilenc("gallery:Text/Nine")
  37.  
  38. when clicked {
  39. this.nextCostume();
  40. }
  41.  
  42. when stage.started {
  43. this.setPosition(280, 140);
  44. this.setCostume(Egy);
  45. }
  46. }
  47.  
  48. actor Toll {
  49. costume Toll_1("gallery:Objects/Pen 1")
  50. costume Toll_2("gallery:Objects/Pen 2")
  51. costume Toll_3("gallery:Objects/Pen 3")
  52.  
  53. when stage.started {
  54. this.hide();
  55. }
  56.  
  57. //TODO
  58.  
  59. function reDraw() {
  60. stage.clearPenTrails();
  61. let form = Kocka.costumeId;
  62. let N = Szám.costumeId;
  63. this.pen.size = 3;
  64. if(form == 1) {
  65. this.heading = 90;
  66. this.setPosition(-300, -150);
  67. this.pen.down();
  68. }
  69. if(form == 2) {
  70. this.heading = 90;
  71. this.setPosition(-300, -150);
  72. this.pen.down();
  73. }
  74. if(form == 3) {
  75. this.heading = 90;
  76. this.setPosition(-100, 70);
  77. this.pen.down();
  78. }
  79. if(form == 4) {
  80. this.heading = 0;
  81. this.setPosition(0, -150);
  82. this.pen.down();
  83. }
  84. if(form == 5) {
  85. this.heading = 0;
  86. this.setPosition(0, -150);
  87. this.pen.down();
  88. }
  89. this.pen.up();
  90. }
  91. }
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement