paala's Recent Forum Activity

  • It seams that now the plugin works only without minify.

    With minify option it doesn't work

    I tried to rewrite the code as follows but I guess I did it wrong:

    Can you see something wrong here:

    /*
    	var user = new GA.User();
        //Create an instance
        var gaan = GA.getInstance();
    	
    	gaan.init(gameKey, secretKey, build, user)
                .addEvent(new GA.Events.User())
                .addEvent(new GA.Events.Design('Game:Start'));
    	};
    	*/
    	
    	var user = window["GA"]["User"];
        //Create an instance
        var gaan = window["GA"]["getInstance"];
    	
    	gaan["init"](gameKey, secretKey, build, user)
                .addEvent(window["GA"]["Events"]["User"])]
                .addEvent(window["GA"]["Events"]["Design('Game:Start')"])];
    	};
    	[/code:1kdb79vv]
  • Thanks, I fixed it. It seams that the order of dependency assets does matter

  • Hi,

    I am trying to develop a plugin for Gameanalytics.com

    I am using :

    https://github.com/orange-games/GA-JavaScript-SDK

    The problem is that the plugin I developed works perfect in preview mode but not on the exported version.

    The exported version works on itch.io website (still gives an error about crypto.js- a file the is placed on dependency) but doesn't on bitballoon.com

    The problem can be at the fact that the plugin needs 7 files listed on dependency?

    "dependency":   "cryptojs.d.ts;enc-base64-min.js;GaJavaScriptSdk.d.ts;GaJavaScriptSdk.js;GaJavaScriptSdk.js.map;GaJavaScriptSdk.min.js;hmac-sha256.js;"
    	[/code:2qk7a38n]
    on runtime.js:
    
    [code:2qk7a38n]//init
    	Acts.prototype.init= function(gameKey, secretKey,build)
    	{
    	var user = new GA.User();
        //Create an instance
        var gaan = GA.getInstance();
    	
    	gaan.init(gameKey, secretKey, build, user)
                .addEvent(new GA.Events.User())
                .addEvent(new GA.Events.Design('Game:Start'));
    	};
    	
    	//end init[/code:2qk7a38n]
    
    Can anyone with more experience in developing plugins can help me?
    
    Thanks

    Construct 3 = construct 2 on cloud but now you have to pay 99$/year in order to use it

    https://www.scirra.com/forum/construct-3-official-information-thread_t187100

    Unfortunately I think they will move to a subscription based product, since now the construct 3 will run in browser

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • http://javascript.info/tutorial/keyboard-events

    If you make a test here, indeed there is a keycode 0 but there is another variable which that makes the special char appear.

  • I don't mean physical keyboard, but logical, the one set by windows

  • No, it doesn't work. In fact after you place that jsfile the whole game doesn't work

  • so I have to make a plugin to include that js file and autodetect should happen?

    thanks

  • Problem Description

    When you have special characters like Ă Î Â Ț Ș the Keyboard lastkeycode is 0 in firefox and the english keyboard equivalent key in chrome and IE.

    Attach a Capx

    https://1drv.ms/u/s!AgGzaqNrd-XViCalbcUkpCWxj7f5

    Description of Capx

    when you press a key it says on text the last key pressed and if Ä‚ was pressed

    Steps to Reproduce Bug

    • Step 1 install romanian keyboard
    • Step 2 run the capx file
    • Step 3 test if events happen as it should be

    Observed Result

    In firefox: with romanian keyboard when you press [/Ä‚ nothing happens but it should with ENG keyboard the key is getting interpreted as pressed but it shouldn't. with Romanian keyboard the last key code is from [ not from Ä‚ in chrome and IE Expected Result

    ____ What do you expect to happen?

    It should return the keycode of Ä‚ only when the keyboard is Romanian

    it should say pressed only when Ä‚ is pressed in romanian keyboard

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    ____ windows 8.1

    Construct 2 Version ID

    ____ R236

  • Hello,

    If I do Keyboard.StringFromKeyCode(Keyboard.LastKeyCode) when I press some special/language specific character like ȘĂÎȚ it returns nothing.

    How can I do that?

    Thanks

  • Ok, thanks, I guess a loop is the only way to do it

paala's avatar

paala

Member since 19 Dec, 2013

Twitter
paala has 4 followers

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies