rexrainbow's Recent Forum Activity

  • I don't know

    varaiable("yournamehere"&loopindex)

    exactly means, sorry. Is it a condition with some expressions in event sheet?

  • Yes, user can pass an instance variable like a number/string in expression.

    My plan is that user can assign an instance variable(index) in an action. And the (behavior)plugin will remember which variable need to be log. And then it doesn't need to call log action every tick.

    The interface is like the condition in sprite: "Compare instance variable" to get an instance variable(index)

  • For example, to log the value of a property(i.e inst.X, inst.Y) or a private variable of instance.

  • Glad to hear that.

    Maybe I can use string to replace passing an array object. <img src="smileys/smiley36.gif" border="0" align="middle">

    Btw, another question is

    How to get combo list of instance variables name?

  • This question is about creating plugin.

    In expression.js:

         expvalueProto.set_any = function (val)
         {
              if (typeof val === "number")
              {
                  ?this.type = cr.exptype.Float;
                  ?this.data = val;
              }
              else if (typeof val === "string")
              {
                  ?this.type = cr.exptype.String;
                  ?this.data = val.toString();
              }
              // null/undefined/an object for some reason
              else
              {
                  ?this.type = cr.exptype.Integer;
                  ?this.data = 0;
              }
         };

    It seems an object will be ignored by

    this.type = cr.exptype.Integer;
    this.data = 0;

    Can "set_any" pass an object type? Maybe it can carry an object like an array to another plugin object.

  • I am a C2 plugin maker.

    Wish C2 can be more popular!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, I got it!

  • Hi,

    It seems double quoted is used to identify the string in ACE dialog. How to use double quoted in a string?

    For example: show this string

    He said "Nice!"

    in a text object.

  • If you can not get touch.X and touch.Y, try to download again, I have updated it again.

  • Update:

    r63 had fix the "on touch end", so I update drag & drop and touchmouse.

    drag & drop

    touchmouse

  • This question is about creating plugin.

    When edit Condition:"Compare instance variable" in sprite, it can select instance variable by name.

    The name of instance variables seems to be shown in a combo box.

    In Plugin SDK:

    AddComboParamOption(text);
    AddComboParam(name, description, initial);

    How to get the name of instance variables to put in 'text' in AddComboParamOption? Or using another function for list the name of instance variables?

    Or where can I find the edittime.js of commanace.js?

  • Update:

    drag & drop

    • support touch

    (test by gonzdevour, thanks)

    moveto

    • avoid update when dt==0
rexrainbow's avatar

rexrainbow

Early Adopter

Member since 4 Apr, 2011

Twitter
rexrainbow has 84 followers

Connect with rexrainbow

Trophy Case

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

Progress

15/44
How to earn trophies