GameThirsty's Forum Posts

  • I can not find/ forget the exact link, however I do have the source code:

    //lock orientation

    intel.xdk.device.setRotateOrientation("portrait");

    intel.xdk.device.setAutoRotate(false);

    Maybe this can be executed inside the external JS plugin?

  • Joannesalfa

    Thanks for the heads up.

    I been looking into Intel's documentation for locking the screen in one of the modes. They have one line of JavaScript code that locks it to one orientation.

    Maybe the JavaScript execute plugin will work with this?

    I have yet to give that a try.

  • Very promising Intel!

    My app I have been wanting to develop is now possible, Crosswalk allows the support of Facebook integration, and that is what I am proud of.

    People are not liking the Android Toolbar being shown during run-time, is this something you are going to remove in the future? This is something I would like to keep, so users can still navigate to other content on their device and not feel consolidated. I would suggest maybe make it optional to keep the Android Bar? Some apps would like Toolbar support.

    Once again, thank you!

  • Hey everyone!

    I hope your Christmas went very well.

    The new Crosswalk export is very promising. It runs flawless for my app, however I can not figure out how to lock portrait orientation. Has anyone found out how?

    Thank you

  • No I have not tried Clay.IO

    I do not want to include this in my App, as it is very messy signing into two different accounts.

    On a side note, I do believe there has to be a workaround to allow Facebook integration on CocoonJS, I can't believe that it has not been integrated yet regarding how popular Ludei is with CocoonJS...

    I had emailed them and asked when it may be supported, which was over a week ago, and I have not gotten a reply back.

  • Maybe you should view some tutorials on PHP and MYSQL before you tackle something like this?

    http://www.w3schools.com/php/

    http://www.w3schools.com/php/php_mysql_intro.asp

  • Just check for overlap?

    Sprite is overlapping Sprite -> Sprite Destroy

  • bump

  • bump - still in need of a solution/answer.

  • I wouldn't recommend this as a way of storing all the users data. However it may be the most simplest way.

    You have a database structure like this, where you can track different types of skills available to the user, for this example I only included one skill, and you can keep track of each and every one of them inside a skills column for the user. For items, you can basically do the same, each time a player gets a specific item, you can add one to the Item_1 column, more then one item in the game? Just add more Item columns. . Like I said, this is not the best method.

    It works, but ugly.

    As for storing avatars, you can't store them inside a database. However, you can let the user upload a image onto the webserver, and store them in a user image directory, and when they log in, call the image file into a sprite.

  • Is this your own server?

    There might be a permissions issue inside your directory for read and write access.

  • Glad it worked! <img src="smileys/smiley1.gif" border="0" align="middle" />

    You could further security by encrypting the passwords inside the MYSQL database, and make the AJAX post parameters more complex then password or username.

    Just to name a few things.

  • You are probably getting a blank image, because the AJAX request is supposed to post "photo" to the PHP file. When you post the URL it does not have photo. The PHP file then doesn't know what image to give it.

    See, part of the PHP file requests this:

    $img = $_POST['photo'];

    Change your CanvasSnapshot to this:

    Uploaded with ImageShack.us

  • UPDATE:

    Im not sure how close I am to integrating Facebook into CocoonJS, however I tried using CallJS plugin to call external JavaScript scripts, which Ludei has given in their "Social Extension" documentation. (which was used as their demo application on the CocoonJS Launcher)

    I can't get it to work, however I did a test JavaScript script inside CocoonJS on export and it worked flawlessly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bump- maybe a CS2 developer could answer this?