Thailan13's Forum Posts

  • 3 posts
  • I did like so ,

    C2:

    Execute Javascript("var money_outside_C2 = "&money)

    Index.html:

    document.getElementById('moneydiv').innerHTML=window.money_outside_C2;

    it says money_outside_C2 is not defined

    sorry , i dont know javascript too much..

  • Thank you for answer ,

    for example i have a global variable called `money` how can i send this data to my webpage can you give me an example please?

    i did , "alert(this.runtime.all_global_vars);" but it returned me

    [object, Object]

    i need display these global variables as text on my webpage not as text object on canvas

    because i want to make Ui on html page.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello , first of all thank you for this wonderful software.

    My question is , how can i get data from C2 to html page , i want to display for example health,golden data in html page.

    is there a way to display directly from construct with javascript?

    For example :

    var goldenfromC2 = document.getElementById('golden');
    document.getElementById('goldenhtml').innerHTML= goldenfromC2.value;

    sorry for my english <img src="smileys/smiley9.gif" border="0" align="middle" /> , i hope you understand me <img src="smileys/smiley36.gif" border="0" align="middle" /> .. have a nice day

  • 3 posts