+1 vote

I want to draw lines using mouse just like when I use pencil or brush tool in GIMP or Photoshop. Not straight lines, but lines that can follow my cursor. So far I have tried using draw_line and draw_polygon but it didn't go as what I want to achieve.

How can I achieve that using gdscript?

Thanks

asked Apr 14, 2016 in Engine by cody (17 points)
edited Apr 14, 2016 by Bojidar Marinov

1 Answer

+1 vote

Have you tried draw_rect , draw_circle or draw_texture?

A pencil is not drawing lines it is drawing pixels/textures
If you choose in gimp the line tool it will use draw_line

For pixel style I would try draw_rect
For different brushes draw_texture

answered Apr 16, 2016 by alexholly (172 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.