Drawing application with _draw() - Advanced #Godot 3 Tutorial

Learn how to use the _draw function of CanvasItem nodes to draw custom shapes. Documentation for _draw(): #class-canvasitem-method-draw Challenges documentation: 1. Draw with squares instead of circles You can use the draw_rect method for this #class-canvasitem-method-draw-rect 2. Draw a line from the last clicked point to the next clicked point You could use draw_line: #class-canvasitem-method-draw-line or draw_polyline: #class-canvasitem-method-draw-polyline You’ll also have to change up the way the _input function works. 3. Draw a polygon You can use draw_polygon: #class-canvasitem-method-draw-polyg
Back to Top