Happy fifth Scrathaversary, @fIorrie! You've been on Scratch for five whole years, so I thought I might make a quick project to celebrate it. The entire project is just five lines having a dance. (Don't go full screen, everything goes fuzzy that way). It's completely pen rendered, and very object oriented. Only one out of the eighteen scripts is actually the stuff creating the classes; all the rest is defining the classes. **If remixing, check out the Line.getCloserTo() custom block, I'm most proud of it; and think it might look awesome in animations**
So like there's only one class, the Line class. It's constructor is new Line(x1, y1, x2, y2, pensize, colour) And it returns a value to "_new Line", this represents the line (it's actual just an integer ID). You can then pass that ID to Line's getters and setters and have some fun Getters: Line(LineObject).x1 [getter] Line(LineObject).y1 [getter] Line(LineObject).x2 [getter] Line(LineObject).y2 [getter] Line(LineObject).width [getter] Line(LineObject).col [getter] All getters will return their value to "_Line.getVal" Setters: Line(LineObject).x1 = {x1 value here} Line(LineObject).y1 = {y1 value here} Line(LineObject).x2 = {x2 value here} Line(LineObject).y2 = {y2 value here} Line(LineObject).width = {pensize value here} Line(LineObject).col = {colour value here} Methods: Static: Line.renderAll() Does not clear the screen; draws all the registered line objects Non-static: Line(LineObject).render() Does not clear the screen; draws that particular line object Line(LineObject).getCloserTo(x1, y1, x2, y2) Makes the line object a little closer to a target line