Jaydon's Forum Posts

  • Yann About the grid-movements, what If Player intended to change direction without moving? Thanks

    Yes! I remember requesting it few years back and now it's coming true

    Tom thank you Scirra

  • I see... any news of support for Letterbox Fullscreen modes from Ludei? The game was made specifically to 1 screen size ratio and would not work with multiple screen sizes... I hope they would support them soon

  • I tested my game that has a window size of 480 x 640 on a Samsung Galaxy Note 2 using CocoonJS compilation APK.

    Under project settings in C2, it was a Letterbox Scale. So, I was expecting the game will be in the centre of the screen since Samsung Galaxy Note 2 has an aspect ratio of 16:9 but the game is just 480 x 640. But, it turns out to have expanded outside of my layout + window size of 480 x 640 starting from the top, with a large gap at the bottom that was out of the layout. It works well in browser and node-webkit but doesn't work in the compiled APK. What have I missed?

    *P.S. Tell me if you need more info about the game

  • Tom

    Ashley

    Hmm... where is our contender badge? It's just a bronze badge, no big deal giving out for this competition

    *Means a lot to me!

  • I'm curious when are we awarded with the 1 million badge.

    P.S. How am I counted as downloaded? Just by downloading any version while logging in even without completing the download?

  • >

    > Thanks for the guide! Studying Facebook's API now...

    >

    no problem, I suggest to register on stackoverflow, is a perfect community for this problem... for the facebook API you need to know hot to implement facebook with php...

    at the first I suggest you to install XAMPP to test your application in local server... after that you need to make application on facebook and set the url of your application in the options of your application (search how test app in localhost with facebook)

    now, I suggest to load all information of the user with the API, you need to implement this code in your index.html of construct2 (rename in index.php, search how get the user data and the permission)

    now, you need to have a database and a php for communicate with the php..., should be like:

    when the user connect on the application, load the UID from the php (or plugin) with username,email...etc and send this information to a registration page in php. the registration page will save all of the data on the database.

    now, you need to make a code to see if the UID already exist on the database, and if the exist jump the registration, and if exist load all of the information in a specific page on php, and extract the data with construct2 to a specific variable.

    now, the problem can be how store the JSON file, because the database has a limits of the string, and you can't save the JSON file in one value. for this, you can make another code in php when the user is on registration... Remember, the UID of facebook is unique and this is very good, so that you can use this to make a folder in a specific server with a php code, and when some one need to save the json file just make another code to upload the file in the same folder of the UID.

    the easy way is:

    You can do it to send the JSON string with the AJAX, the limits of url is 2000 characters, for this you need to make more of JSON if your characters are more than 2000. if you make a map like farmville, you can store the tilemap in one JSON for example, another one for another things etc etc....

    for load the file will be easy because you know where the savegames are stored, by UID of every user...

    I'm no hardcore programmer and I only know some fundamentals of javascript and C++ OOP. Where can I get started? Or should I ask for assistance? If so, I'm on the wrong board I guess...

  • > Social games like the legendary Restaurant City or Farmville. Where will the data stored, how to retrieve information and data for the "neighbors" system and so on. So much is needed for a good social game. I don't see how Construct 2 can do this yet unfortunately...

    >

    > and I don't think it's easy. Correct me if I'm wrong

    >

    Hi, I never play Farmville or similar game, I just saw to play my friends...

    you need to make a database to store all of the information... like, when someone connect in your game, construct2 should take the UID and save in database... all of the data (JSON, variable...) should be on the database.

    for the neighbors you need to make a code like "show friends who play the same app", this is easy, you can do that with php, after that you need to get the data from your friend (from the database) but how get in the games depends... in the game for example, you can appear a list of your friend with the avatar, and when you click to one, just open the data of your friend to show his game, and you can also add action....

    you need to know mysql, php, and the API of facebook...

    it's possible, I never try to show the friends who play the same application, but I'm sure it's easy

    Thanks for the guide! Studying Facebook's API now...

  • The game is there just got to start adding those actions from Facebook Object. The implementation can be a pain in the neck!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Social games like the legendary Restaurant City or Farmville. Where will the data stored, how to retrieve information and data for the "neighbors" system and so on. So much is needed for a good social game. I don't see how Construct 2 can do this yet unfortunately...

    and I don't think it's easy. Correct me if I'm wrong

  • Is it possible to build a social game on Facebook with Construct 2? What are the requirements?

  • Is it just me or the scml file I dragged into C2 is doesn't appear when RUN layout?

    I made a few animations in Spriter, selected both custom save options and applied, but when I drag in the scml file in C2 (with the plug-in installed), the animations just doesn't appear on RUN layout but appears on the editor layout only. What did I missed??

  • Thx for the suggestions! <img src="smileys/smiley2.gif" border="0" align="middle" />

    I will look around and see what I can do with these <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Currently I'm developing an infinite procedurally generated world game. I was wondering if I could have modding feature for my game so that players can change the way it looks in-game. Is that possible for Desktop export?

    If this could be done just with the event system it would be awesome! I'm still new with Javascript so I'm not sure what to do here......

  • You could also try adding Lerp(Self.X , "destination X" , 0.2)

    0.2 is the speed and self.X is the starting point to "destination X"

    This will making the slide in and out look smoother and elegant ;)