tgeorgemihai's Recent Forum Activity

  • Ashley Thank you for reply, but I still have some questions:

    1. If I use "Add ICE server" action, the Multiplayer plugin will automatically choose the TURN server (even if P2P is supported) ?

    2. Can you recommend a tutorial for a TURN server that can work with C2/C3 ?

    3. Can a TURN server be installed on a cheap VPS host ?

    4. Is there any advantage to use the Multiplayer plugin with TURN server instead of events and WebSocket server ?

  • I've tried the Multiplayer object and it works quite well, but it fails to make connections (signalling) on mobile data. From what I've read, probably I reached a NAT which blocks the connection.

    Not only that, but some networks block P2P so a solution is a TURN server. From what I get, the TURN server acts as the middleman and all communications go trough it (instead of P2P). Is that correct ?

    Is there any way to skip the signalling, or get the host address sent trough a text/link ?

  • If you focus on mobile and web games, then yes, you should move to C3.

    Slowly, but sure, it will surpass C2 (already does in some parts).

    You can still use C2, but things are more simplified with C3.

    For me, the subscription wall keeps me to C2. The price is decent (around 8€/month) for what C3 offers, but there are months when I don't open C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yup, got it to load profile data. Thanks again R0J0hound for explaining the function(){c2_callFunction('c2functionname')}. It really helps

    The runned script after the Api is loaded is:

    "FBInstant.initializeAsync().then(function() {
    	FBInstant.setLoadingProgress(100);
    	// Finished loading. Start the game
    	FBInstant.startGameAsync().then(function() {
    		c2_callFunction('getuserdata');
    	});
    //and after this I can successfully access player's name or photo
    //I still need to understand what is with "contextId" and "contextType". Until now I get "SOLO" (it works as intended)
    });"

    I would like to link somehow FBInstant.setLoadingProgress(progress); to round(loadingprogress * 100).

    Also, not sure if the startGameAsync() should start only after setLoadingProgress() is finished, something like this:

    FBInstant.initializeAsync().then(function() {
    	FBInstant.setLoadingProgress(100).then(function() {
    		// Finished loading. Start the game
    		FBInstant.startGameAsync().then(function() {
    			c2_callFunction('getuserdata');
    		});
    	});
    });
  • R0J0hound Thank you, I just realized (after 5 years) that Construct has jQuery included. I've seen it included in export folder, but didn't think that I can call functions from Browser.ExecJS .

    So I have:

    System - On start of layout
    	Browser - Execute Javascript "$.getScript( 'https://connect.facebook.net/en_US/fbinstant.6.2.js' , function(){c2_callFunction('apiloaded')} );"
    	Or "$.getScript(" & """https://connect.facebook.net/en_US/fbinstant.6.2.js""" & " , function(){c2_callFunction(" & """apiloaded""" & ")} );"
    (both versions work, It's just how you want to work with the quote marks inside strings. The good part is that JavaScript also accepts single ' )
    
    Function - On function "apiloaded"
    	do stuff here
    

    Also, I've realized why I couldn't get the value from variable "playerName". It was because it was inside a function, not global.

    dop2000 I can try, at least to show how to get the game running. The information about Facebook Instant Games is very little, few tutorials ... etc.

  • Hello, I'm trying to include the Facebook Instant Games SDK inside a C2 project.

    I know basic Html/JavaScript and managed to get it work by editing the index.html file using the following code:

    <!-- in head -->
    <script src="https://connect.facebook.net/en_US/fbinstant.6.2.js"></script> 
    
    <!-- in body -->
    <script>
    FBInstant.initializeAsync().then(function() {
    	FBInstant.setLoadingProgress(100);
    	FBInstant.startGameAsync().then(function() {
    		var contextId = FBInstant.context.getID();
    		var contextType = FBInstant.context.getType();
    		var playerName = FBInstant.player.getName();
    		var playerPic = FBInstant.player.getPhoto();
    		var playerId = FBInstant.player.getID();
    
    })
    </script>
    

    How can I call these functions and variables as "playerName" using events ?

    I've noticed that examples use the "window" object when calling functions

    I've tried with:

  • You do not have permission to view this post

  • Have you read the last pages ? This plugin is abandoned, the creator didn't post anything for around 1 year.

    If you want to buy, better use the official store: scirra.com/store

    Also, if you really want to make 3D games, better choose another engine, like Unity or Unreal Engine.

  • bilgekaan

    Do you have problems with the converted C3 version from the first post ?

    You can try construct.net/en/make-games/addons/183/ease

  • Except Nintendo Wii U (that can use Net Framework), the only way to export to consoles is Chowdren:

    construct.net/forum/construct-2/general-discussion-17/chowdren-fast-construct-runtim-134395

  • Construct 3 is an Html5 engine only.

    However, it can export wrapped Html5 games directly to platforms:

    • Web (Html5)
    • Andriod .apk (using Cordova)
    • iOS .ipa (using Cordova)
    • Windows, Linux, Mac (using NW.js)
    • Windows 10, Windows Phone 10 and Xbox One (using UWP)
  • Sorry, but I don't see it happen officially too soon, especially with Unity support.

    But there is still a chance with 3rd party plugins: gbatemp.net/threads/brew-js-make-homebrew-apps-with-javascript.504327

tgeorgemihai's avatar

tgeorgemihai

Member since 3 Aug, 2013

None one is following tgeorgemihai yet!

Trophy Case

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

Progress

13/44
How to earn trophies