rexrainbow's Forum Posts

  • Tatiana Conde

    You need download this plugin. The download link is at the top of this post.

  • Try Construct 3

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

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

    Dialog plugin will create a dialog by html tag, it will block the game as I uesd before.

  • Try this plugin, you could even assign the weight of each number.

  • Ashley

    I try to build some plugins which could call official function object. So I get the parameter list then pass this list into official function object.

    I had used AddVariadicParams in my timeline plugin, it works fine. But I could not add AddVariadicParams in a behavior type plugin.

  • Hi, Ashely

    I add "AddVariadicParams" in behavior in edittime.js, but C2 editor does not know it. Would you please check if "AddVariadicParams" could be used in behavior?

    I like the design of "AddVariadicParams"! It makes the interface more clearly in some cases.

    Thanks for your help.

  • Update:

    Add "expression:ToString" which could transfer hash table into JSON string.

    It could assign mulit-parameters or no parameter.

    • If there has no parameter, transfer current hash table saved in this hash table plugin.
    • If there has parameters, like
    Hash.ToString("a", 10, "b", 20)

    It will create a new hash table = {"a":10, "b":20}, then transfer it into JSON string.

    User could use this method to create JSON string of hash table in an single expression. It might be useful to pass parameters with string index into official function plugin's "expression:Call".

    Capx

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/FnHash.png" border="0">

  • boolean

    You still could download my function plugin, but I recommend users migrate to official function plugin.

    And my other plugins which related my function plugin (for example, timeline series) will migrate to connect to official function plugin, too.

  • I agree that the official function plugin should keep using "number" index, since it makes the interface simple. "expression:Call" could not use "string" parameter as well.

    To support "string" index, a solution is using my hash table plugin or official dictionary to transfer parameters into JSON string and set this string in parameter of official function. In "On function", unpack the JSON string by hash table plugin or official dictionary. to get parameter by string key.

    (string key, value) -> hash table -> JSON string -> function parameter 
    -> "call function -> "on function" 
    -> function parameter (JSON string) -> hash table -> (string key, value)

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/FnHashtable.png" border="0">

    Edit:

    I update my hash table plugin to support create JSON string in an single expression.

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/FnHash.png" border="0">

  • Ashley

    Try these steps:

    1. add an action at event sheet then save it

    2. set this action to "af_deprecated" (in edittime)

    3. reopen capx, try to click the action which have "af_deprecated" and see the gui interface.

  • The Action which with "af_deprecated" at event sheet will not be edit-able (not show the correct gui interface)

    I though action with "af_deprecated" was only invisible at actions list. But the old actions at event sheet could still be edit-able to keep compatible.

  • This plugin had been deprecated since official could be called by javascript in browser object (Javascript integration).

  • Hey Wastrel ,

    I found a way to get return value from expression.

    1. create a fake ret instance like

    fake_ret = {value:0,
                               set_any: function(value){this.value=value;},
                               set_int: function(value){this.value=value;},                           
                              };

    2. use it with "apply" (or "call") like

    cr.plugins_.Function.prototype.exps.ReturnValue.apply(plugin_obj, [fake_ret])

    3. get return value like

    fake_ret.value
  • Ashley

    "onLayoutChange" method might not be trigger when the first layout started.

  • r109 has an official function plugin, so my function could be retired. <img src="smileys/smiley9.gif" border="0" align="middle" />

    I might redesign some plugins connecting with my function object like "timeline", "worksheet", "timer", and "scenario" to be able to connect with official function object.

  • Uh, I only have git download page.

    This plugin tree does not have fully plugins, most of them are official plugins and mine.

    (The diagram is made by XMind2012)