Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
This question is about creating plugin.
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
?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.
No - the only expression types supported are int, float and string. Arrays might be supported in future but not for the time being.
Develop games in your browser. Powerful, performant & highly capable.
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?