Prox's Forum Posts

  • <img src="http://world-inventors.com/screen3.png" border="0">

    Working CAPX

    But you could do the same without the "pick instance with UID" <img src="smileys/smiley17.gif" border="0" align="middle">

  • Your mistake is that your function "Hop" is called only once per click, so it only get one ID (the first).

  • It's very simple <img src="smileys/smiley2.gif" border="0" align="middle" />

    <img src="http://world-inventors.com/screen2.png" border="0" />

    This is a pointless example, because it's the same as:

    On Touch Object : MyObject => MyObject : Set Width

    But it should give you a point of view how to work with UIDs and function parameters.

  • If you want a return message from AJAX:"Request URL" your php script should generate some output, like:

    echo "done";

    or if you want return the number of bytes that were written to the file:

    $bytes = file_put_contents("data.txt", $_GET['myVar']);

    if($bytes !== false){ echo $bytes; }else{ echo "failed"; }

    I suspect your error messages are based on incorrect web-server settings.

  • [German] >> Sch?n zu sehen das es hier noch ein paar Deutsche gibt. <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Where do you capture this error messages?

  • You dont need ONE variable, you will need an array, because you must store many positions. I would also recommend to store position data every second and not every tick.

  • Mission accomplished. <img src="smileys/smiley42.gif" border="0" align="middle" />

  • Your C2 Version doesn't matter.

    PHP stopped ... hm ^^ You should try to upload all stuff to a different server.

    You have done everything right and it should work.

  • Do you use Firefox with an Addon like "Request Policy" or some crazy restrictive firewall-rules ?

    Capx ... checked

    PHP Script ...checked

    Server config and permission ... checked

    So the last thing we have not checked is your Browser / System ^^

    Good luck finding the error <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nope they only have to be at the same domain.

    In my current project all AJAX Requests work fine and i'm sorry but i can't figure out where your problem could be. We already checked the most relevant parts.

  • Maybe a cross-domain security error ;-)

    Whats the URL you uploaded your exported html and js files?

  • You dont need the "&" after myVar, but that is not the error.

    So your capx looks right. Test the following

    Open the URL pigobo.com/UploadTest/test.php

    After that check your "data.txt". If it dosen't contain "TEST1234" your PHP Script don't work correctly or you dont have permission to write to the file.

  • It should work.

    Try to run your php script with your browser to check for errors.

    You can also upload your .capx file so i could take a look at it.