rexrainbow's Forum Posts

  • I had made geocoding plugin before, download and invoking google api does not need google api key, although the document of google map api has key parameter.

  • Braus

    You only need provide part of url string if using "system expression:find".

    If someone embeds your application into an iframe, the expression:MainFrameURL will return different value, unless he embeds your main frame into his iframe ->

    His main frame - iframe ( your main frame ) - iframe ( your application ).

    I guess that the expression:MainFrameURL will still return your main frame's URL.

  • It does not need a google account, imo.

  • No, most of my property names uses method 1, only the names which I don't want to be changed uses method2.

    For example, you put an external library into your plugin, call the functions provided by this library, then uses method2 to keep the name of function call unchanged.

  • There are 2 ways to name the property (variable or function name) in an object-

    1. obj.name

    2. obj["name"]

    After exporting with minify, property name in Method 1 might be changed to obj.a, name in Method 2 will become obj.name. So uses Method 2 to keep the property name unchanged after minify.

  • I don't know why it does not work in intelXDK, because that this plugin does nothing, no code is inside the action and condition.

    Since this plugin do nothing, it is fine to remove this plugin from porject when exporting.

    Hi all.

    It seems that Rex Commen plugin is causing some problems if you export to Cordova and use XDK. This is what I experienced:

    1. My game (Take Down Zombies) did not work in XDK's emulator.

    2. I did not know why. So I started to remove stuff from my project.

    3. A lot of "Remove some stuff, Export, See if emulator works in XDK"

    4. When I remove the Rex Comment object, then suddenly the emulator in XDK worked just fine.

    I like the Rex Comment. It is really usefull. I hope this issue will be fixed. Can anyone perhaps verify my experience?

    I just want to pas on this info.

    Thanks,

    Mikael

    SolunaSoftware.com

  • Braus

    System comparing will test if all characters of two strings is equal or not. Or you might try system expression:

    find(src, text), Find the first index within src that text occurs, else returns -1. find is case-insensitive[/code:100k9xa7]. see official manual.
    Before you compare the URL, you might print it on a text object or a console of browser, to make sure your logic or my plugin is correct.
  • Update

    "condition:Is in acceptable iframe", "Action: Append" had been deprecated.

    Add new "Condition:Is in iframe" and "Expression:MainFrameURL" -

    "Condition:Is in iframe" will return true if current application is embedded into an iframe, get URL of main frame by "Expression:MainFrameURL".

    Braus

    Hope this changing will be more easy to use. First you detect if the application is in an iframe or not. Redirection url of main frame if application is in an iframe.

  • Braus

    I had updated the document of this plugin in this page.

    Property "Busting all iframes" had been removed.

  • Braus

    Call "Action:Append" to add your url of acceptable page.

    About download issue, I guess that there is not command to force cleaning cache.

    But it is not my consideration, it is better to ban the player before download the game. (I don't know how to do)

  • Braus

    Here is a sample capx, the "Condition:Is acceptable" will return true if current app is not in any iframe ( I had set property "Busting all iframes" to "Yes" ).

    The exported html5 page is here, you might try open this page directly, or try to put it into a iframe ( Pode has a iframe plugin ), and see the result.

    But this is not a perfect solution, because that the game has been downloaded already.

  • sinaemar

    If you want to pause the whole game (by set global timescale to 0), call "Action:Set pause state" with "Pause" parameter. After paused the game, "Condition:On pause" will be triggered.

    See this document.

  • scorepixel

    Sorry, I don't know, you might ask other users.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • scorepixel

    Thanks. Set zindex

    object.style.zIndex[/code:hm8cg7pe]
    can place the canvas object in front of iframe, but all sprite/tilemap, tilebackground objects are put in the same canvas object, they are in front or behind iframe together.
  • Reading color of pixel in canvas plugin will return the original color in this canvas, not the final result after shader of weblg, imo.