GameThirsty's Recent Forum Activity

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • bump- maybe a CS2 developer could answer this?

GameThirsty's avatar

GameThirsty

Member since 29 Nov, 2012

None one is following GameThirsty yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies