Karentzos's Recent Forum Activity

  • I have already a backend storing other information for each player. To use backend to have IDs of the players to connect with FB ID's is the worst thing you could do. The simplest thing would be to have data from connected players that include ID, name, photo etc.. The only thing missing is "scores" that is implemented from facebook SDK v6.2

    API Reference v6.2 Changelog

    Connected Player Score Entries Introduces the new Leaderboard.getConnectedPlayerEntriesAsync() API, which fetches the score entries of the current player's connected players from the leaderboard.

    I am still wondering why Scirra has not given any answers regarding Facebook Instant Games plugin, which is supposed to cover this function since it implements version 6.2 of SDK.

  • That functionality exist in Load Leader board data, just change Results into Connected players.

    No, this i snot the problem. The problem relies on Facebook plugin implementation, although it is supposed to use SDK version that includes those features.

    What i need is having:

    Player name

    Player Score

    Player Photo

    Player ID

    The whole issue is that there is data for Player name, Player Score, Player Photo on "leader board" and there is Player name, Player Photo, Player ID on "connected players".

    How can we fetch all data? Or how is it even possible to correlate both of them?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can take a look at your project if you don't want to share it here, maybe I'll see something that you missed. My email is doperst2006 (at) gmail.com

    I have sent you the project sample. You can find those event on "playStage" event sheet

  • Spooky becomes more spooky....

    After putting an alert to show "token.count" and after a "wait 1.0 second" (because without this, the count is 0 although its on another event + event level) I have noticed this:

    If I put a single alert, it shows "9" (which is correct as I have 9 tokens created)

    If I put 2 alerts, the first one shows 0 and the second one shows 9!

    If I put N alerts, then guess what? It shows 0 until the last which shows 9!!!

    Its like the count of the objects only takes place on the last alert. Even if you put another condition or even wait in between, then the tokens.count only works for the last event.

    I am starting to believe that there is a completely messy code under the hood regarding instance picking/counting etc. Which obviously is more than frustrating because this is a game engine. Game engine supposed to have 1 thing super clear and solid.... object access...!

  • I had the same without "pick all". The group only gets deactivated by one line at the end of this group. I have put a log message and it works. But with browser alert "tokens.count" I only get "0". I cant reproduce it because it doesn't happened on the rest of the project. This is extremely frustrating and awkward bug...

  • This is not the issue. First of all I want to say that this thing didn't happen some days ago. This was working fine and after working on other things on other things on other layouts, I found that this by accident. I was working on another layout that was my main menu that also suddenly stopped working (all positions got messed up and I tried to recreated by by scratch).

    For some reason the even "for each" gets skipped. The second time it passes this group "for each" is working by this is not how it is supposed to work. I can see all objects on the debug mode and there is nothing that can force Construct to pick those objects. I tried to put wait 0 seconds, I broke it into 2 different functions (1 creating tokens and the other accessing tokens to change private variable). I broke it into different groups... nothing!

    This is not happening anywhere else on my projects, not even on other projects. I cant even reproduce this. Its like something is messing my projects and I cant't figure out what this is.

    a) Tokens get created

    b) tokens cant be accessed, Construct skips this loop whatever I try.

    Of course I also tried different picks, putting tokens inside different families, removed from families, renamed tokens, renamed families... and nothing!

  • This is an issue (that was not there a couple of days ago) and I still can't figure out what is causing this. I figured out that a level from my game was messed up and after 2 days of investigation I found the specific line where the issue occurs.

    I am creating some 9 objects that belong on a certain family. Then I want to adjust some properties of those objects. The issue is that while the creation of the objects occurs, when I try to use "for each" the debuggers skips the line.

    I have placed a browser alert to count the objects while they get created and after the creation ends. In the creation process the alert goes normal:

    1,2,3,4,5,6,7,8,9

    On the next line the alert shows "0" !!!!

    What is even more crazy, is the fact that the objects still exist. I can see them on my game, I can see them on the debugger, but Construct cant access them...

    Here is the screenshots from the code and when I use debugging

    How is this even possible? This layout was working just fine. Its a part of a whole game and I had to open this layout for about a month now. A few days ago I have realized that it doesnt work anymore!

    Any ideas, or suggestion?

  • You do not have permission to view this post

  • I am developing my Facebook Instant game for the last months and I got extremely confused with some aspects regarding Instant game plugin and terminology.

    My game will consist of short matches, where each match is 3 rounds. I have already created a backend to store additional data regarding matches that will occur on the game.

    On my game I want to have a leader board, displaying: player photo, player name, player score.

    Now my issue:

    One important information for my backend (to keep match results, rounds etc) is Facebook id. I know i can get this unique value from "Connected players" but why is this not available on leader board?

    1) Do I have to load both "leader board" and "connected players" to have both data?

    2) What is the exact difference between players listed on "leader board" and "connected players"?

    It is already extremely difficult to proceed with the development as I have to test almost every aspect of the main menu (leader board generation, GUI stuff, buttons, scores, matches, communication with backed) but uploading every time to Facebook to do a real test.

    3) As I can tell, current Facebook Instant Games plugin implements 6.3. From version 6.2 there is an option to fetch score data for connected players. Where is that on Construct's plugin?

    "(New) Connected Player Score Entries Introduces the new Leaderboard.getConnectedPlayerEntriesAsync() API, which fetches the score entries of the current player's connected players from the leaderboard."

  • AllaR this is a very nice solution. I tried to implement with line slope equation (calculating the next point of x using y and vice versa according to start point and end point positions). The result was a mesh, as y or x get extreme values according to the slope of the line.

    You solution is much better. I will also put some "clamp" to put some boundaries of drag paths.

  • I wasn't very clear on my description. I want to achieve this on diagonal lines. I can use the two point line-slope formula but the difficult part is if you have multiple points A -> B -> C and you want the sprite to follow the path created from these 3 parts. I cant even image how harder it must get when you want to implement this with bezier curvers.

  • I am trying to implement a specific type of control where the user can drag an object but that object will move only over a certain path.

    At first it would be great if at least I could implement it using only linear path (just simple line between two points). I want the drag operation to take X,Y of drag and apply the movement to the relevant path. Think of it as a slider.

    I tried to use timeline (with steps) taking advantage of X,Y position but it doesnt work for me (also it seems to be a non-pretty and clunky solution).

    Any ideas?

Karentzos's avatar

Karentzos

Member since 27 Jun, 2019

None one is following Karentzos yet!

Trophy Case

  • 5-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies