Page 1 of 1

how do you make a drawing tool?

PostPosted: Fri May 11, 2012 6:47 pm
by Goomba
How do you make a paint like program? would you use the followmouse action then some thing else? :?

Re: how do you make a drawing tool?

PostPosted: Fri May 11, 2012 7:35 pm
by skydereign
For drawing you have to use a canvas actor. From there you can set the painting tool used by the canvas with the setpen function. To actually draw, you either use putpixel, or moveto/lineto. You can look the canvas functions up here, as well as there are plenty of canvas examples on the forums. http://game-editor.com/docs/script_reference.htm

Re: how do you make a drawing tool?

PostPosted: Sat May 12, 2012 11:30 pm
by Goomba
ok thanx :D