fredriksthlm's Recent Forum Activity

  • You have already posted this issue/question.

  • Hi,

    Before I dig into solving my issue I guess some of you already have a solution you can give me :)

    In the example provided with the fishes, their "type" (color) is based on random() when they are created. All fishes are instances of the same object, the type is a variable which determines which animation it will use. so they get different colors.

    But if I will make sure that every fish is different, lets say I have a room with four players, and I have four different fish types.

    Which is the easiest way of choose the type based on which fishes that are already in the room.

    I know some of you already have this set up, so I don't want to invent the wheel again :)

  • You do not have permission to view this post

  • Lycka till! :)

  • Maybe as a property on the IG object itself?

  • Ashley Thanks for a great update! I will try all the new events later this week. As you know, this was highly appreciated!

    "Note that from this release onwards, you must use the Instant Games export option for the Instant Games plugin to work"

    Just a question, is it any differences with the new export other than the app-config file? Some code included/excluded in the runtime if you choose the new IG export? (I know your basic idea with your software is to include "everyting" in the runtime, but I also know you have some platform specific code/workarounds in it..)

  • well, hello?

    It is not clear what you are asking.

    you set the loader image (splash) in the facebook app dashboard. not in construct.

    but that has no effect on loading time

  • Oh! I am sorry for this, I actually now tried one of my games and switched contect (choose and update async) and I now see the same as you do. Text is not mine, just a standard (localized) FB text.

    Must have been in some late update of facebook! my code has been the same for months, now it works out like yours!

    I know they changed the message for updateAsync Leaderboard, in october. Maybe they changed the updateAsync Custom as well...

    Maybe you can ask in the Instant Games forum, or file a bug report

    But as I said: in their offical github (which they uploaded one hour ago) they use this code. So maybe this bug is just temprary for today. (It happens a lot that some stuff break for a day or two and then came back)

  • i don't have any of that in my app config file.

    the only line I have is the now mandatory navigation line:

    {

    "instant_games": {

    "navigation_menu_version": "NAV_FLOATING",

    }

    }

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 5 minutes ago Facebook uploaded examples to their repository at their github regarding exact this.

    This is their payload:

    {

    action: 'CUSTOM',

    cta: 'Say Congrats!',

    text: {

    default: ' english text',

    localizations: {

    en_US: 'UStext',

    es_LA: 'spanish',

    pt_BR: 'portuguese'

    }

    },

    template: 'play_turn',

    data: { myCustomData: '42' },

    strategy: 'IMMEDIATE',

    notification: 'NO_PUSH'

    };

    Which is the same I always use.

  • I can also just see standard cta (Play Now)

    But text is what I specify. Same code as you have.

    Only difference I see is that I use:

    template: 'play_turn',

    And I have not specified anyting in the app config file. just quickly try to delete all that, and set 'play_turn', to see if you get the correct text.

  • Have you specified an image? Make sure you have a correct base64Picture set.

    For me it works fine with

    template: 'play_turn',

fredriksthlm's avatar

fredriksthlm

Member since 6 Jun, 2016

Twitter
fredriksthlm has 8 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • x44
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x10
    Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

20/44
How to earn trophies