Echopros's Recent Forum Activity

  • Thank you, Dear . so appreciated for the reply :)

    so my game is about a fooball shoot, the ball loses 0.02 of his size every tick while its size is greater than 0.4*ballSize on his way to the goal, when the ball became small and his size is < 0.4*ballSize and it is overlapping the goal then it got score, you can say it's perhaps similar to the basketball game on messenger.

    finally I found a sollution, I added a sprite "checkGoal" visible (transparent) on the bottom of Z behind the goal, I made the goal score is when the 0.35 < ball size is < 0.4 and * size and overlapping the goal if true add action to make the "checkGoal" invisible, else if "checkGoal" visible and overlapped by the ball then it's a failed shoot.

    Thank you dear :), i wish that this can help someone else ;)

  • Hi, I'm building a ball shoot game, it has the same logic as archery. by the bullet behavior enabled, the ball continues to get smaller while it's greater than 0.40. and scores goal when it's overlapping the targeted point while his size is between 0.4 and 0.35.

    my question, how to detect that the ball failed to overlap the targeted point between 0.4 and 0.35 of his size.

    thanks in adavance.

  • Thank you very much, great guiding :)

  • There is a paid addon:

    https://www.construct.net/en/forum/extending-construct-2/addons-29/facebook-instant-games-135414

    Unfortunately, I've just purchased it, he has the same problem, he couldn't call the sdk in the runtime file as I did, I don't know if there is a possibilty for the refund :(

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think people are making C2 addons any more.

    I would suggest finding a similar addon that uses an external JS script, and check how it's done there.

    By the way, I've seen C2 addon for Facebook Instant Games, but I don't have a link, try searching the forum.

    thank you Dear, the link for the C2 Addon you mentioned was broken (https://www.construct.net/en/forum/construct-3/general-discussion-7/fb-instant-games-leaderboard-133334), I really got the way to call it correctly, but always the same problem while exporting the game "Script Manifier Error", really so appreciated for the reply :), thank you very much,

  • Hi devs :D, I'm trying to build a plugin for Facebook InstantGame, I used the Construct sdk to build my own, but I'm heavily stuck on the step when calling the Facebook SDK inside my runtime js, the Export always give me the error unable to run the script manifier when the option manify script is active, here is my code where I called the Facebook SDK:

    typeProto.onCreate = function()

    {

    var that=this;

    var script = document.createElement('script');

    script.src = "https://connect.facebook.net/en_US/fbinstant.6.3.js";

    document.getElementsByTagName('head')[0].appendChild(script);

    script.onload = function() {

    alert("Echopros!! Script loaded and ready");

    FBInstant.initializeAsync()

    .then(function() {

    console.log("Echopros 1");

    FBInstant.setLoadingProgress(100);

    FBInstant.startGameAsync()

    .then(function() {

    this2.runtime.trigger(cr.plugins_.FbInstant.prototype.cnds.entrypointComplete, this2);

    console.log("Echopros 2");

    contextId = FBInstant.context.getID();

    contextType = FBInstant.context.getType();

    var playerName = FBInstant.player.getName();

    var playerPic = FBInstant.player.getPhoto();

    var playerId = FBInstant.player.getID();

    entryPointData = FBInstant.getEntryPointData();

    console.log(playerId);

    console.log("Echopros 3");

    console.log(entryPointData);

    console.log(playerPic);

    console.log("Echopros 4");

    console.log(playerPic);

    // Once startGameAsync() resolves it also means the loading view has

    // been removed and the user can see the game viewport

    game.start();

    });

    });

    };

    };

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

Echopros's avatar

Echopros

Member since 14 Apr, 2020

None one is following Echopros yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies