Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. stage {
  2. default backdrop Grey_Light("gallery:General/Grey Light")
  3. let list_1 = [ ];
  4. let list_2 = [ ];
  5. let index = 0;
  6.  
  7. actor Prince {
  8. costume Idle("gallery:Figures/Prince Idle")
  9. costume Walk_1("gallery:Figures/Prince Walk 1")
  10. costume Walk_2("gallery:Figures/Prince Walk 2")
  11. when cloned {
  12. //TODO
  13. }
  14. when stage.signalReceived("start") {
  15. //TODO
  16. }
  17. when clicked {
  18. //TODO
  19. }
  20. }
  21.  
  22. actor Princess {
  23. costume Idle("gallery:Figures/Princess Idle")
  24. costume Walk_1("gallery:Figures/Princess Walk 1")
  25. costume Walk_2("gallery:Figures/Princess Walk 2")
  26. when stage.started {
  27. this.hide();
  28. list_1=[];
  29. list_2=[];
  30. this.setPosition(-180,100);
  31. this.tint=250;
  32. this.size=30;
  33. this.tintHue=0;
  34. createClone(this);
  35. this.x+=360;
  36. this.tintHue+=40;
  37. createClone(this);
  38. this.y-=200;
  39. this.tintHue+=40;
  40. createClone(this);
  41. this.x-=360;
  42. this.tintHue+=40;
  43. createClone(this);
  44. this.setPosition(0, 0);
  45. this.tintHue = 1;
  46. list_1.push(this);
  47. for (let i = 1; i <= 5; i++) {
  48. list_2.push(0);
  49. }
  50.  
  51. }
  52. when cloned {
  53. list_1.push(this);
  54. }
  55. when stage.signalReceived("start") {
  56. if(this.cloneId > 0) {
  57. this.show();
  58. }
  59. }
  60. }
  61.  
  62. actor Winner {
  63. costume Blue("gallery:Text/Winner Blue")
  64. costume Green("gallery:Text/Winner Green")
  65. when stage.setup {
  66. this.hide();
  67. }
  68. when stage.signalReceived("win") {
  69. this.show();
  70. }
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement