HTML5 javascript native drawing functions on a GML surface

Discussion in 'Programming' started by FrancisClase, Oct 12, 2019 at 12:53 AM.

  1. FrancisClase

    FrancisClase Member

    Jun 20, 2016
    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?

  2. chmod777

    chmod777 Member

    Aug 26, 2016
    Try to set WebGL to "disabled" in the options.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice