Alirezaakrami's Forum Posts

  • > > use https

    >

    > How do I use https? Is it enough to just add the phrase "https"? Or should my host have it inherently?

    http is coming to an end, more and more services will reject connections without encryption.

    Your webhost, having the PHP files, should have https.

    But the host I got for free gave me a domain that is http.

  • use https

    How do I use https? Is it enough to just add the phrase "https"? Or should my host have it inherently?

  • Dop2000, you were right .

    How to fix it ?

  • I could to open console massage:

  • Yes, press F12 in preview and check console messages. I bet you the issue is with CORS.

    F12 dont work in construct preview page.what should i do ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Most likely CORS issue. Press F12 and check console log for error messages.

    I run preview on my pc , not on the site or any server , Is it still possible because of the cross domain problem?

  • Or just add a TURN server.

    Is it very hard to add TURN on host ?

  • There is no solution.. except use a different (third party) Multiplayer plugin, e.g. Photon

    Is photon free?

  • Hi. I chose a free host to test the game. I put the php code in it. When I copy and paste this address into the browser's address bar, the new record is well recorded.

    Http://*****.ihweb.com/try.php?username=ali

    But when I do this through construct (either post to url or request url) it does not work. Why ? what should I do ?

    The php code in the screenshot is as follows:

  • we Iranians can not buy the contruct3, because of sanctions, it is not possible to buy from a foreign site. What should we do? what's the solution ?

  • I think many users in the Iranian region can not connect. Only users who share a common Internet resource can connect well. For example, I turned on the internet and hotspot on my phone, and the laptop connected to my hotspot. I ran Preview View on both my phone and my laptop, both of which join well into the game room. But my friend, whose phone was connected to another internet source, could not connect. Of course, for a moment, the game console debug showed that three peers had joined, but in fact, the third peer player object did not sync and did not appear, and after a while Seconds disconnected.

  • Suppose we have a web view based application that has two pages running, one for a construct and one for a regular page. And both have a common host (localhost). What is the best and easiest way to transfer real-time data between these two pages?

  • ASHLEY , is there a document or page contain javascript scripting reference. Like coppercube ambiera site :

    ambiera.com/coppercube/doc/index.html

  • That is not valid JavaScript code in the screenshot, as the JavaScript variable is not declared. I'd advise taking the Learn JavaScript in Construct course which will likely answer many of your initial questions. The Integrating events with script example also demonstrates passing values between event sheets and JS code.

    Thanks, I thought the variables we create in Event Sheet are the same JavaScript variables that we can access in scripting. But you say the two are different.

    Yes, I searched and I was looking for such a tutorial that you put a link to, but I could not find it on the site. I think categorizing site links is a bit confusing.

  • What did you write?

    Try runtime.globalvars.varName

    Or localvars.varName for local variables

    How to use it ?

    This is true?

    untime.globalvars.Ali="reza";