Unit 3,Lesson 13


My students are trying to create a kind of drawing feature in lesson 13 lesson extra. My student is trying to get his to draw a line, but then when the mouse gets picked up be able to draw from the last point again. In other words, create an entire drawing that starts at different points on the screen. Here is what he started with: https://studio.code.org/projects/gamelab/_KDlFNHM6JFNs2mUoZUxSjkz3p5N9oj0EOvrrxWqz1M

How can he get it to draw the line, then let go of the mouse and then draw again in the last drawn place?

He doesn’t want to use sprites (as in this example: https://studio.code.org/projects/gamelab/SlCPLC-7AWY21LGNyeMhlL63MCAYX5V0t6UXXhnRFnU ) because he want a continuous line.


This is such a cool idea! My first thought is that he’ll probably need to use variables to store the current location he wants to draw from. Anyone else have ideas?