Draw variable in gml

Discussion in 'Programming' started by scott7610, Dec 30, 2016.

  1. scott7610

    scott7610 Member

    Joined:
    Jul 22, 2016
    Posts:
    72
    What is gml for Draw Variable? I need to draw global.strength and it hasto be done in code not D&D.
     
  2. Perseus

    Perseus Not Ragarnak Forum Staff Moderator

    Joined:
    Dec 29, 2016
    Posts:
    953
  3. CloseRange

    CloseRange Member

    Joined:
    Jul 2, 2016
    Posts:
    760
    Ragarnak already solved your question, just use
    Code:
    draw_text(x, y, "Text Here");
    just wanted to let you know that if you are using an integer value instead of a string value to specify its a string by doing:
    Code:
    string(global.strength)
    making the finaly code look something like:
    Code:
    draw_text(x, y, string(global.strength);
     

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