smitchell's Recent Forum Activity

  • "Every game must make use of the system 'Rotate layer' or 'Rotate layout' actions. It must be an important feature of the gameplay and not just added on as an afterthought."

  • Didn't the competition state rotation must be the main functionality of the game? Meaning the game has to revolve some way around rotation?

  • Hi, nice game. But how are you planning on incorporating rotation into this?

  • Please post your capx so we can help you.

  • I'm not sure if you can get the name of a friend using the Facebook object, but there are third party plugins that might allow you to call some JavaScript or HTML so you can do so.pixel wall clock

    You can randomly generate a name yes, maybe using an array. Or you can store the names in a seperate text file then call them using JavaScript.

    You can use the players Facebook name, have a nice little welcome message or something.

    You can post to Facebook, achievements, scores ect.

    Later I'll make a example for you

  • Hope that helps <img src="smileys/smiley1.gif" border="0" align="middle" />

  • GingerBatMan, Kyatric

    Yeah I also had a look at strpos function

    Came up with this, But it doesn't feel right:

    <?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??

    $mystring = $HTTP_GET_VARS[CurrentUser];

    $pos = strpos($mystring, $username);

    // 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;

    }

    if ($pos === false) {

        echo "The string '$username' was not found in the string '$mystring'";

    } else {

        echo "The string '$username' was found in the string '$mystring'";

        echo " and exists at position $pos";

    }

    ?>

    Then the read.php

    <?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];

    }

    ?>

    Im not sure what im supposed to do the the read php to return the replay you need when you want it <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Kyatric ahh dammit!

    Is there anyway to call a server side script without it being at the same location? third party plugin maybe?

    Im making a IOS game, It wont work if the serverside script is somewhere else will it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Im might sound stupid but im just wondering.

    Ajax -

    Does the PHP script or what ever your calling have to be in the same location as the html file?

    Because im interested in mobile gaming, And if the scripts have to be on a server, will just calling example.com/example.php work?

  • If you explain in depth what you are trying to achieve then there are tips and tricks forum users may be able to provide to help suit your situation :).

  • You could just draw them in photoshop or another similar image editor,

    Then set cursor style to "None"

    Then -

    System.EveryTick

         -> Set MouseIcon.Y(Mouse.X) // set its position to the mouse's X position

         -> Set MouseIcon.Y(Mouse.Y) // set its position to the mouse's Y position

    Mouse.IsOverObject(ObjectToGrab) // If the mouse is over the object, Then set the mouse icon to frame 2(The frame with the grab icon)

         -> SetMouseIcon.CurrentFrame(2)

    Mouse.IsOverObject(ObjectToGrab)[Invert] // Invert is to determine so we know were NOT over something we can grab

         -> SetMouseIcon.CurrentFrame(1) // If were not over something were able to grab set the Icons Frame to 2 the normal/hand icon

    If you need me to provide a example, Let me know :)

    If i completely failed to understand what you meant, Then please explain more.

  • Its bouncing of a object that's not at a exact 90 degree angle, Or the bounding box of the object is not straight.

    You can try fix the angle, or collision box.

    Or you can add two waypoints, On on the left, one on the right.

    System on start of layout:

         -> Object.setAngleOfMotion(Waypoint1)

    Object.OnCollisionWith(Waypoint1)

         -> Object.setAngleOfMotion(Waypoint2)

    Object.OnCollisionWith(Waypoint2)

         -> Object.setAngleOfMotion(Waypoint1)

    If you cannot figure it out with bouncing, then that solution should be a quick fix.

    If its for your spinny saws kinda things. I recommend the sine behavior.

         - It looks allot nicer, as it smooths the stop and accelerates to the next position.

         - its controllable, Speed, distance to make the wave ect.

smitchell's avatar

smitchell

Member since 25 Nov, 2011

None one is following smitchell yet!

Connect with smitchell

Trophy Case

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

Progress

16/44
How to earn trophies