h1k3's Recent Forum Activity

    Is there anyway to implement the vibrate feature on the 360 controllers? I'm working on an iso type game and would like to shake the controller when under attack.

  • The game pad plugin might work. If I'm not mistaken it can handle multiple pads. I think it just assigns a number to the pad such as pad0 and pad1. I'm not sure how you would handle split screen though. So pad0 would be assigned to sprite0 movement and pad1 would be assigned to sprite2 movement commands. Ie if pad1 left axis >= 50 then simulate control for sprite2 left,right,up,down accordingly. Doing that for both should allow movement of both but again keeping them both visible on the screen might be a bit more of a challenge on bigger layouts.

  • I did through the app center. If you follow the link to my game you'll see email listed as a permission and my create screen now shows the email address properly. Thanks for the quick replies though

  • It does echo back the email as well. I figured it out. Had something to do with the text box layout. It's showing up fine now. Setting the email up was a pain though, had to ask for an extra permission in order to receive it. You were able to see my php file? Any obvious errors? It seems to work fine. Heres a copy of it, I'm new to php so I'll take any help I can get. :)

    <?

    // Remember to copy files from the SDK's src/ directory to a

    // directory in your application on the server, such as php-sdk/

    require_once('facebook.php');

    $config = array(

        'appId' => 'xxxxxx',

        'secret' => 'xxxxxxx',

    );

    $facebook = new Facebook($config);

    $user_id = $facebook->getUser();

    ?>

    <?

        if($user_id) {

          // We have a user ID, so probably a logged in user.

          // If not, we'll get an exception, which we handle below.

          try {

            //$info = $facebook->api( '/me/groups', 'GET');

            //$ct = count( $info['data'] );

            //$user_groups = $facebook->api('/me/groups','GET');

            $user_profile = $facebook->api('/me','GET');

            echo $user_profile['name'] . "," . $user_profile['link'] . "," . $user_profile['id'] . "," . $user_profile['first_name'] . "," . $user_profile['last_name'] . "," . $user_profile['username'] . "," . $user_profile['email'] . "," . $user_profile['gender'] . "," . $user_profile['timezone'] . "," . $user_profile['locale'] . "," . $user_profile['verified'] . "," . $user_profile['updated_time'];

           

          } catch(FacebookApiException $e) {

            // If the user is logged out, you can have a

            // user ID even though the access token is invalid.

            // In this case, we'll get an exception, so we'll

            // just ask the user to login again here.

            $login_url = $facebook->getLoginUrl();

            echo 'Please <a href="' . $login_url . '">login.</a>';

            error_log($e->getType());

            error_log($e->getMessage());

          }   

        } else {

          // No user, print a link for the user to login

          $login_url = $facebook->getLoginUrl();

          echo 'Please <a href="' . $login_url . '">login.</a>';

        }

    ?>

  • Update: haven't checked but I think I found the problem. Safari shows it fine. Not in front of the pc but I'm thinking the size of the text box and how different browsers display the fonts might be to blame and I just need to resize the text box? Is there a way to resize it dynamically at runtime based on length of the string?

  • Hi everyone. I need some assistance if possible with a facebook app I'm creating.

    facebooklogin.php

    I can pull up all the variables as you can see, but when I assign it to a variable or array instance as a text and then assign the variable to a textbox it doesn't show up. If you go to

    My game site

    and click on create it brings you to the page that shows other info. But the email text box is not showing up. I know I'm using tokenat properly as the other items are showing up. Is there a different type of variable to use when storing an email address?

  • You would need to handle that outside of construct2 I believe. I've personally started using php to interact with Facebook. You can access all the features including Facebook credits. Here's a link to help you get started if you want to branch out to php.

    developers.facebook.com/docs/reference/php

  • I had this concern at first with the game I'm working on

    apps.facebook.com/relicsofyore

    In the title create a character screen the text input box was jumping around depending on the browser I was toying with. A little while later I realized the browser zoom levels were all different. Once I set the zoom to 100% for each browser the text box stopped jumping around. Is there anyway to set the zoom level inside of construct2 to avoid this little glitch in resizing?

  • No not yet, I want to include the gamepad which only works in beta chrome and beta firefox right?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Note I also checked IE. IE loads everything as well but the Facebook picture is a little teaky in that it shakes. The text names display fine so it appears to just be a Nightly issue?

  • Hi guys,

    I'm not sure what is happening but I'm having a slight issue with the Facebook plugin.

    I have a little text box for the user first and last name and a picture box for the facebook picture. Using Chrome and Firefox Nightly I can log in and the profile picture loads fine. In Nightly however the player name text boxes never appear. In Chrome they do. It seems like the code must be working for Chrome to function properly. Any idea why Nightly might not be displaying?

    Here is my game

    <img src="http://dl.dropbox.com/u/77974757/sampleevents.PNG" border="0">

    <img src="http://dl.dropbox.com/u/77974757/sampletextbox.PNG" border="0">

  • Ty twdead. :) php is brand new to me so the correction is greatly appreciated. :)

h1k3's avatar

h1k3

Member since 1 Apr, 2012

Twitter
h1k3 has 3 followers

Connect with h1k3

Trophy Case

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

Progress

15/44
How to earn trophies