Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. stage {
  2. backdrop White("gallery:General/White")
  3.  
  4. actor LogiRobi {
  5. costume Idle("gallery:Figures/Robot Idle")
  6. when stage.started {
  7. this.pen.up();
  8. this.hide();
  9. this.setPosition(0, -180);
  10. this.heading = 0;
  11. stage.clearPenTrails();
  12. this.pen.down();
  13. this.pen.hue = 60;
  14. this.pen.size = 2;
  15. tree(40);
  16. }
  17. function tree(p){
  18. if(p > 1){
  19. this.pen.hue += 10;
  20. this.move(p);
  21. this.turnRight(20);
  22. tree(p - 3);
  23. this.turnLeft(40);
  24. tree(p - 3);
  25. this.turnRight(20);
  26. this.move(-p);
  27. this.pen.hue -= 10;
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement