GingerBatMan's Recent Forum Activity

  • Weishaupt

    Yeah im gonna start work on the rotary comp as soon as i finish this :)

    Few more questions if its not too much trouble

    Sending the data -

    Curretly im sending it like this : "http://blablabla.com/post.php?name=BlaBlaBla&log="&int(tokenat(state,0,","))"

    But " log="&int(tokenat(state,0,",")) is only the x.. so how do i send the rest?

    Playing it back -

    How am i supposed to do this?

    sprite.SetX(Ajax.LastData)

    sprite.SetY(Ajax.LastData)

    sprite.SetAngle(Ajax.LastData)

    About the naming thing im obsessed with how do i do this -

    were sending a username: [name] in the PHP script, But say I have a scoreboard, how do i then search for the same name?

    Would something like this work?

    <?php

    $username = $HTTP_GET_VARS[name];

    $log = $HTTP_GET_VARS[log];

    $mystring = $HTTP_GET_VARS[CurrentUser];

    $findme   = $mystring;

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

    // Note our use of ===. Simply == would not work as expected

    // because the position of 'a' was the 0th (first) character.

    if ($pos === false) {

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

    } else {

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

        echo " and exists at position $pos";

    }

    ?>

    But then how would i use this string to display the data of the current user?

  • Weishaupt, Did you see the capx.

    When I said "Don't Worry I figured it out." I meant the mysql part <img src="smileys/smiley1.gif" border="0" align="middle" />

    I also managed to do the login system, Without mySql, if you wish to see that i'll upload it soon :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • chrisbrobs,

    How did you make the player stay on the bike?

    pin?

  • Audio does not really work so well on IOS, There is a way to get it working but its not so convenient.

    You have to call the audio through javascript.

  • Don't Worry I figured it out.

    "So, the PHP now is working?" <- Im not sure, I tested it but I wasn't sure how to apply the data to the sprite, And if I needed 3 logs, one for x, one for y, and one for angle. In the PHP you kindly provided there was only one log, not sure if i need more?

    Oops only just saw your last message.

    Sorry forgot to give link to CAPX,

    Here it is,

    dl.dropbox.com/u/51270524/Replay.capx

  • Yeah if i could only figure out how to set one up ;D

  • I come from a programming background. I understand basic PHP, but have not used it in many years.

    When I programmed games from start to finish, I used various web API's instead of things like mySQL database's ect.

    Im currently using a free host and its asking me to select user, and there is none from the dropdown so im really confused :S

    http://dl.dropbox.com/u/51270524/Host.JPG

  • Even if I couln't have the feature of viewing the replays of the top 100 users, I could still download the actual users replays if i can search the php for a name,

    I dont actually need the login system, But its something that can easily be done with mySql if i can figure out how to make one ;D

  • Yann, Yeah im actually trying to make a database now.

    But then construct doesn't directly support mysql does it?

    Its still gonna have to be done through php, right?

    What I was planning, Have a mysql database managing a login system, then use the usernames from that to find the replays..

  • Weishaupt, Thanks for this, I understand it quite well.

    Take a look at the capx, I cannot really figure out how to then play the downloaded replay.. There are a few questions within the capx if you wouldn't mind answering if you can.

    Also Is it possible to display a list depending on the username?

    • So for example if a user searched 'Jhon' then it would display a a list of 'Jhon's replays?
    • Or something like corresponding the replay with the scoreboard?

         -> for example the top 100 people in the world, you can view there replay?

    The second one kinda answers itself if the first one is possible. Because you could search for the name depending on the position of the user.

  • septeven, Thanks for this.

    How's your plugin coming along? Whats the estimated time frame for completion?

  • Weishaupt, No worries mate. Whenever your feeling good. <img src="smileys/smiley1.gif" border="0" align="middle" />

GingerBatMan's avatar

GingerBatMan

Member since 15 Dec, 2011

None one is following GingerBatMan yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies