TrickyWidget
You might check official drag&drop behavior.
Update
Develop games in your browser. Powerful, performant & highly capable.
Or cranberrygame could only have single thread to put all related plugins, in a list. So that Kyatric only need maintain one link.
Kyatric
I am not sure.
Put similar features into a plugin is a good idea, but put all into one plugin might not be better.
Or C2 will only has "system" plugin for all official plugins.
faulknermano
Thanks, I will test it as soon as possible. Or could you provide a test capx?
jayderyu
I also hope that I could improve the IDE of C2 in plugins one day,
Add "Action:Set local value" and "Expression:LocalValue" to save compressed string to webstorage / load decompressed string from webstorage.
Document, plugin and sample capx are included.
It is a small behavior which packs these 3 variables - current value, maximum and minimum bound together.
This behavior could be replaced by 3 private variables and some system expressions, I know.
Animmaniac
Thanks for these suggestions. Hope these 2 actions could have more flexible for assigning inputs/outputs.
Interesting!
I guess that , the this.inst had not been created at behavior's on create function. I had this problem before, too.
Since rex_function had been deprecated, user need to replace rex_function to official function object.
Or run the code step by step by adding
debugger;[/code:3b6xhh67] before the call, to see if the action has been called or not.
It is possible to call an action from a behavior. Even call an action/expression/condition from other plugin/behavior.
Ubivis
It is correct. The sample capx is try to train the ANN to be a "XOR gate". The output messages are log at console of browser.