Weishaupt's Recent Forum Activity

  • So, the PHP now is working?

    I would grant you access to one of my DB, but due to security restrictions of my provider, i can not....sorry <img src="smileys/smiley19.gif" border="0" align="middle" />

  • MySQL would sure make things alot easier ;-)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Does anyone know, around which point a tiled backround image rotates?

  • first of all, does saving and loading now work?

    ....and where is the CAPX for me to look at?! <img src="smileys/smiley5.gif" border="0" align="middle" />

  • GingerBatMan:

    Try the following PHPs:

    <?php

    // read variables from POST data.

    $username = $HTTP_GET_VARS[name]; <-- DEFINE THE USER??

    $log = $HTTP_GET_VARS[log]; // <-- MODIFY THIS TO SEND THE REPLAY??

    // verify the username is set and not empty

    if (!isset($username) || $username == "") {

        echo "failure";

        exit;

    }

    // verify the log is set and a number

    if (!isset($log) || $log == "") {

        echo "failure";

        exit;

    }

    // format the username and log as a comma delimited row

    $entry = $username . "#" . $log . "\n";

    // append entry to the log file

    if (!file_put_contents("logs.csv", $entry, FILE_APPEND)) {

        echo "failure"; // failed to write to file

        exit;

    }

    echo "success";

    ?>

    ...and...

    <?php

    /** Return a list of top logs. */

    // read variables from GET data

    $num_logs = $HTTP_GET_VARS[num_logs];

    // read each line in logs.csv as a string into an array

    $logs = file("logs.csv");

    // define a comparator to sort items by log

    function compare($s1, $s2) {

        // split the strings by their delimiter

        $a1 = explode("#", $s1);

        $a2 = explode("#", $s2);

        // compare the logs

        return $a2[1] - $a1[1];

    }

    // sort the array of logs

    usort($logs, "compare");

    // output the requested number of top logs

    for ($i = 0; $i < $num_logs && $i < count($logs); $i++) {

        echo $logs[$i];

    }

    ?>

  • Is it a bug, that the "Ping-Pong" within the animation only works if you set the animation to loop? I just want it to PingPong once, or n times, but nor continuetly...

    Here is a CAPX to play with

  • Sorry GingerBatMan - I had not had a chance to look at it today :-(

    No bad feelings please - there are days I am just not able to "work" <img src="smileys/smiley11.gif" border="0" align="middle" />

  • Confirmed!

  • The frontwheel seems to be off centered. Have you set the bounding box to circle?

  • Same here, just like Velojet discribed!

  • I don't know if you noticed but the 'log' variable... is in CSV (Coma Separated Value)... Just saying :D

    I did, thats why I said he has to change the delimiters in his PHP <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Thanks for the credits <img src="smileys/smiley20.gif" border="0" align="middle" />

Weishaupt's avatar

Weishaupt

Member since 22 Nov, 2011

Twitter
Weishaupt has 1 followers

Connect with Weishaupt

Trophy Case

  • 13-Year Club
  • x8
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies