F
FrancisClase
Guest
Is there a way to use the native javascript drawing functions in a GML surface?
I am creating an on-screen drawing game and I would like to be able to use the native javascript functions to draw, since the stroke and performance are perfect ... if I had to implement a drawing algorithm with curves and smooth stroke in GML it would not be as optimal as the native.
I've done it in a "dumb" way: creating a canvas on top of the game and drawing there, but I don't think all browsers interpret it well and I feel it's a clumsy way ... I don't know why GMS doesn't use the native functions of HTML5 drawing.
Any ideas?
I am creating an on-screen drawing game and I would like to be able to use the native javascript functions to draw, since the stroke and performance are perfect ... if I had to implement a drawing algorithm with curves and smooth stroke in GML it would not be as optimal as the native.
I've done it in a "dumb" way: creating a canvas on top of the game and drawing there, but I don't think all browsers interpret it well and I feel it's a clumsy way ... I don't know why GMS doesn't use the native functions of HTML5 drawing.
Any ideas?