Sami424's Forum Posts

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • don't worry about orientation.

    But your game is in Development mode (testing), not live. Change that.

    Its live , i get the iframe error however that worries me, i think this is on my end since no one else has this issue. What would you recommend using portrait size in c3? 1080 right?

  • It looks like you're trying to use the Facebook API (a different service) on Instant Games, and it's encountering an error trying to do that. It would not surprise me if the Facebook API was intentionally blocked in Instant Games.

    again , using only IG in this project. instant games, and i solved it by just setting the canvas to fixed. I dont know why you are still doing this seriously. Read trough the whole thread again. then answer.

  • You're saying that pop up was blocked. Are you testing within the Instant Gamers platform on Facebook?

    I am using the link that you get, when instant games hosts your game. So i have exported etc and everything. Altho another guy told me this can be a orientation error.

  • Sami424 is your app in testing mode? there is a popup sandbox error and a device orientation not sure what that is about.

    probably the orientation is not set to landscape or portrait, on the orientation error, where if im not mistaken on Ig u have to lock the orientation as the iframe loads directly to landscape or portrait based on the settings in the developers.dahsboard.

    make sure ur app is live also, and not in sandbox, and allow popups? ehm, is a bit odd never had those issues you have there.

    only console errors i get are ads related xD, failing to load.

    Its on instant games, its hosted on instant games, so no not testing, ads work etc. i get a orientation error where it says it failed to Set orientation tho, i will look into this.

  • I get this error now in console [Instant Games] Initialized OK main.js:11 [Construct 3] Failed to lock orientation: DOMException (anonymous) main.js:11 main.js:7 The deviceorientation events are blocked by feature policy. See https://github.com/WICG/feature-policy/blob/master/features.md#sensor-features Attach main.js:7 main.js:7 The devicemotion events are blocked by feature policy. See https://github.com/WICG/feature-policy/blob/master/features.md#sensor-features Attach main.js:7 sdk.js?hash=dd1410e51276f53d444afd2118f2685f&ua=modern_es6:147 Blocked opening 'https://www.facebook.com/v3.0/dialog/oauth?app_id=311436689565115&channel_url=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2Fd_vbiawPdxB.js%3Fversion%3D44%23cb%3Df1779faf7aa504%26domain%3Dapps-311436689565115.apps.fbsbx.com%26origin%3Dhttps%253A%252F%252Fapps-311436689565115.apps.fbsbx.com%252Ff129c51dbe2b674%26relation%3Dopener&client_id=311436689565115&display=popup&domain=apps-311436689565115.apps.fbsbx.com&e2e=%7B%7D&fallback_redirect_uri=https%3A%2F%2Fapps-311436689565115.apps.fbsbx.com%2Finstant-bundle%2F2720392731334552%2F2121263361326080%2Findex.html&locale=en_US&origin=1&redirect_uri=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2Fd_vbiawPdxB.js%3Fversion%3D44%23cb%3Df31fe079bf579dc%26domain%3Dapps-311436689565115.apps.fbsbx.com%26origin%3Dhttps%253A%252F%252Fapps-311436689565115.apps.fbsbx.com%252Ff129c51dbe2b674%26relation%3Dopener%26frame%3Df1d52c3167ba3b4&response_type=token%2Csigned_request&scope=public_profile%2Cuser_posts&sdk=joey&version=v3.0' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set. popup sdk.js?hash=dd1410e51276f53d444afd2118f2685f&ua=modern_es6:147 c3runtime.js:409 [Construct 3] Suspending

  • I get this error now in console [Instant Games] Initialized OK main.js:11 [Construct 3] Failed to lock orientation: DOMException (anonymous) main.js:11 main.js:7 The deviceorientation events are blocked by feature policy. See https://github.com/WICG/feature-policy/blob/master/features.md#sensor-features Attach main.js:7 main.js:7 The devicemotion events are blocked by feature policy. See https://github.com/WICG/feature-policy/blob/master/features.md#sensor-features Attach main.js:7 sdk.js?hash=dd1410e51276f53d444afd2118f2685f&ua=modern_es6:147 Blocked opening 'https://www.facebook.com/v3.0/dialog/oauth?app_id=311436689565115&channel_url=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2Fd_vbiawPdxB.js%3Fversion%3D44%23cb%3Df1779faf7aa504%26domain%3Dapps-311436689565115.apps.fbsbx.com%26origin%3Dhttps%253A%252F%252Fapps-311436689565115.apps.fbsbx.com%252Ff129c51dbe2b674%26relation%3Dopener&client_id=311436689565115&display=popup&domain=apps-311436689565115.apps.fbsbx.com&e2e=%7B%7D&fallback_redirect_uri=https%3A%2F%2Fapps-311436689565115.apps.fbsbx.com%2Finstant-bundle%2F2720392731334552%2F2121263361326080%2Findex.html&locale=en_US&origin=1&redirect_uri=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2Fd_vbiawPdxB.js%3Fversion%3D44%23cb%3Df31fe079bf579dc%26domain%3Dapps-311436689565115.apps.fbsbx.com%26origin%3Dhttps%253A%252F%252Fapps-311436689565115.apps.fbsbx.com%252Ff129c51dbe2b674%26relation%3Dopener%26frame%3Df1d52c3167ba3b4&response_type=token%2Csigned_request&scope=public_profile%2Cuser_posts&sdk=joey&version=v3.0' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set. popup sdk.js?hash=dd1410e51276f53d444afd2118f2685f&ua=modern_es6:147 c3runtime.js:409 [Construct 3] Suspending

  • You can have another event sheet for Inventory and then include it in main event sheet.

    Dictionaries

    , create dictionary then on start of layout ADD new Dictionary key,

    Dictionaries are Easy its :

    Keyname & keyvalue

    So for example on start of layout ADD key item1 to dictionary with value "magic sword".

    Try this dictionary Will save you time!

  • the user there just told the bellow was the solution to this issue... same as frankie.... so just drop/place the image u want to share in the layout from which the share action is called.

    > The sprite must be in the same layout.

    i keep saying frankie but is fredrik lol ...

    Yeah lol what u said worked! Fredrik solution was to have it on a hidden layer. But that still works , as long as you have the object in the same layout it seems.

  • don't use "if user logged in" as an event.

    just on button clicked-> IG Share

    and have the image on the layout.

    Or post your events, we cannot help you otherwise.

    Thanks fredriksthlm for your help, i resolved it and i dont really know how but in my other thread, the guy there told me to have the sprite on the same layout/layer from where the command executes, and now it works. I HAVE no idea why this is an issue but yeah thank you for your help , i removed the "if logged in" part

  • So construct.net/en/forum/construct-3/how-do-i-8/how-do-i-instant-games-142449

    this guy there shared a picture, and i have done exactly that, this seems like a problem at my end, and not C3 . Any tips on what can cause this type of issue?

  • I have done so. After executing this command opens a facebook prompt for the user to share on the timeline of it. But "text" information does not appear. The input is always blank.

    -> InstantGames: Share with image shareImage, text "This game will break your mind! It is very fun.", data "breakingbraiin"

    Exactly like that is how i have done it! How come it doesnt work? console aint showing nothing... This must be something at my end... So frustrating been spending hours on this ... What could cause this issue that i am having? while everything else works in IG?

  • I have done so. After executing this command opens a facebook prompt for the user to share on the timeline of it. But "text" information does not appear. The input is always blank.

    Yeah i got another thread up , it got out of hand, but your answer is interesting, i get nothing at all when i click a button that executes the command, any thoughts on that? Altho everything else works with it, show ads show score ALL that. Its like this for all my games, they are out on facebook playable, everything works fine except the share.

  • Did it solve your issue or not? (By placing the image on the layout?)

    Please file a screenshot of your events. Otherwise hard to help you. It is working for everyone else but you I think.

    Sorry Fredrik i have not solved it, as i said, everything is working with IG, except for the share/invite/compete function. Now do you have any recommendations on how to proceed? The console shows nothing , that is very weird. I have tried multiple solutions like example "if button clicked while facebook logged in " then "share" "object1" that is on a hidden layer, altho nothing happens, no screen whatsoever comes up, however if i use the "show ad "function with IG, it does show the ad, if i use the "get player data/score" function, it does get the score. VERY weird.

    Note : Also , to bring up the FB plugin, it works flawless on C3 aswell except for when i use the share option xD , it seems i have no luck in this. EVERYTHING comes up except the share function.