none
Challenge of the Month - December 2011, Easy Challenge 2 RRS feed

  • Question

  • Extremely new to Programming and am having a bug with Turtle Object. Using Subroutines to draw a Xmas Tree.

    Program Listing: XCH114

    When I combine Trunk() (Line 19) + BottomOfLastBranch() (Line 20) = works

    All 3 Subroutines work individually, but when I combine any combination of the 3 Subroutines (apart from abovementioned), it draws a partial image, but half way through get an error: "Exception has been thrown by the target of an invocation."

    Thanks so much for any help! xD

    Sunday, January 13, 2019 7:05 AM

Answers

All replies

  • Remove Turtle.Show() , then it works.

    I don't know why...

    • Marked as answer by iPotato Sunday, January 13, 2019 10:27 AM
    Sunday, January 13, 2019 10:13 AM
  • Remove Turtle.Show() , then it works.

    I don't know why...


    Thank you so, so much! xD This was doing my head in.
    Sunday, January 13, 2019 10:28 AM
  • I completed the challenge!
    Big thanks to backtothestart, and also my husband who helped me quite a bit.

    If anyone is interested in my completed Xmas Tree:  WGT233

    Monday, January 14, 2019 10:39 AM
  • I completed the challenge!
    Big thanks to backtothestart, and also my husband who helped me quite a bit.

    If anyone is interested in my completed Xmas Tree:  WGT233

    iPotato, nice Xmas Tree!

    Screen shot of a program Xmas Tree Dream by Turtle Object


    Nonki Takahashi

    Thursday, January 17, 2019 6:19 AM
    Moderator