To test if there has Cr.plugins.spritefont2, just
Cr.plugins.sprutefont2 != null
function GetDragDropBehavior(inst) { var i, len; for (i = 0, len = inst.behavior_insts.length; i < len; i++) { if (inst.behavior_insts[i] instanceof behaviorProto.Instance) return inst.behavior_insts[i]; } return null; }; [/code:3hk231xp] , the core is [code:3hk231xp]inst.behavior_insts[i] instanceof behaviorProto.Instance[/code:3hk231xp] -> object instanceof type Sorry for not clearly.
Update
rex_board plugin: fix bug when picking instance with a family.
faulknermano
Thanks, I had fixed it.
TrickyWidget
You might check official drag&drop behavior.
Or cranberrygame could only have single thread to put all related plugins, in a list. So that Kyatric only need maintain one link.
Develop games in your browser. Powerful, performant & highly capable.
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.
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.
Member since 4 Apr, 2011