paala's Forum Posts

  • How about this?:

    stackoverflow.com/questions/58019463/how-to-detect-device-name-in-safari-on-ios-13-while-it-doesnt-show-the-correct

    let isIOS = /iPad|iPhone|iPod/.test(navigator.platform) ||

    navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)

  • yes, I am using an iPad

  • System-> "is on mobile device" Is not triggered on iOS 13.2.3(latest iOS)

    If I Invert the condition the actions are executed, meaning that latest iOS is interpretted as not mobile

    Tested with R275

  • Yes it does in the latest beta

  • I've added ads(audience netowrk) and log event and many other features I used in my client work(most are not needed for you but I don't have time to clean the plugin).Leaderboards existed in the first version, you will get a working demo along with the plugin

  • > rexrainbow

    > Link is broken, can you send me that plugin because I need it to open project :/

    >

    https://dl.dropboxusercontent.com/u/577 ... x_video.7z

    Link down, Can you send me the plugin. I also need to open a project. Thanks

    Nevermind:

    rexrainbow.github.io/C2RexDoc/deprecated/rex_video.7z

  • Links broken. Can someone reupload please?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I moved TESTVAR=5 to line 3 and it works. Thanks

  • do you mean like this in instance.js?:

    "use strict";
    
    {
    	C3.Plugins.MyCompany_SingleGlobal.Instance = class SingleGlobalInstance extends C3.SDKInstanceBase
    	{
    	var TESTVAR=5;
    		constructor(inst, properties)
    		{
    			super(inst);
    			
    			// Initialise object properties
    			this._testProperty = 0;
    			
    			if (properties)		// note properties may be null in some cases
    			{
    				this._testProperty = properties[0];
    			}
    		}
    		
    		Release()
    		{
    			super.Release();
    		}
    		
    		SaveToJson()
    		{
    			return {
    				// data to be saved for savegames
    			};
    		}
    		
    		LoadFromJson(o)
    		{
    			// load state for savegames
    		}
    	};
    }
  • I have this sample c2runtime.js

    Important code has TESTVAR.

    How do I migrate to c3 runtime?

    Thanks

    // ECMAScript 5 strict mode
    "use strict";
    
    assert2(cr, "cr namespace not created");
    assert2(cr.plugins_, "cr.plugins_ not created");
    
    /////////////////////////////////////
    // Plugin class
    cr.plugins_.MyCompany_SingleGlobal = function(runtime)
    {
    	this.runtime = runtime;
    };
    
    (function ()
    {
    var TESTVAR=5;
    	var pluginProto = cr.plugins_.MyCompany_SingleGlobal.prototype;
    		
    	/////////////////////////////////////
    	// Object type class
    	pluginProto.Type = function(plugin)
    	{
    		this.plugin = plugin;
    		this.runtime = plugin.runtime;
    	};
    
    	var typeProto = pluginProto.Type.prototype;
    
    	typeProto.onCreate = function()
    	{
    	};
    
    	/////////////////////////////////////
    	// Instance class
    	pluginProto.Instance = function(type)
    	{
    		this.type = type;
    		this.runtime = type.runtime;
    		
    		// Initialise object properties
    		this.testProperty = 0;
    	};
    	
    	var instanceProto = pluginProto.Instance.prototype;
    	
    	instanceProto.onCreate = function()
    	{
    		// Read properties set in C3
    		this.testProperty = this.properties[0];
    	};
    	
    	instanceProto.saveToJSON = function ()
    	{
    		return {};
    	};
    	
    	instanceProto.loadFromJSON = function (o)
    	{
    	};
    	
    	/**BEGIN-PREVIEWONLY**/
    	instanceProto.getDebuggerValues = function (propsections)
    	{
    	};
    	/**END-PREVIEWONLY**/
    
    	//////////////////////////////////////
    	// Conditions
    	function Cnds() {};
    	
    	Cnds.prototype.IsLargeNumber = function (number)
    	{
    		//return number > 100;
    		return TESTVAR;
    	};
    	
    	pluginProto.cnds = new Cnds();
    
    	//////////////////////////////////////
    	// Actions
    	function Acts() {};
    
    	Acts.prototype.Alert = function ()
    	{
    		alert("Test property = " + this.testProperty);
    	};
    	
    	pluginProto.acts = new Acts();
    
    	//////////////////////////////////////
    	// Expressions
    	function Exps() {};
    	
    	Exps.prototype.Double = function (ret, number)
    	{
    		ret.set_float(number * 2);
    	};
    	
    	pluginProto.exps = new Exps();
    
    }());
  • The is a facebook group for developers where Facebook admins provides support I think

  • https://www.udemy.com/complete-facebook-instant-games-course/?couponCode=FORUMPROMO

    Use the link above and enroll for just 9.99$ on Complete Facebook Instant games course on Udemy.

    You will get a course on how to make Facebook instant games using Construct 2

    MEGA Bonuses: Just TODAY and TOMORROW:

    If you enroll to the course using the coupons above you will get another course of mine FOR FREE.

    You choose the course.

    This is a one time offer because I need 10 more paying students to get a bonus from udemy.

  • yes, if you buy now you will buy at the current price. Unfortunately publishing instant games takes months (for facebook to accept the games)

  • Hi, I have templates that I can sell to you. Poker, blackjack, slots. email me: morosanumvjwe@yahoo.com