Thailan13's Recent Forum Activity

  • 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..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

Thailan13's avatar

Thailan13

Member since 27 Jan, 2014

None one is following Thailan13 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies