I've run into two issues:
1) how do I get blend modes to work? I have a drawing plugin, "world", supports-effect, pre-draw. I pass in sprites so I can suck out their textures, essentially for a custom particle mechanism. I've got things working nicely (spawming/movement), except I wan't the blend mode to be Additive. I've tried setting my plugin object to Additive, the layer to Additive, the base sprite to Additive, but nothing seems to make my quad call of the texture Additive.
2) how can I find out when an an object is destroyed? In C2 I had this:
this.myDestroyCallback = (function (self){
return function(inst){
self.onInstanceDestroyed(inst);
};
})(this);
this.runtime.addDestroyCallback(this.myDestroyCallback);
I can't find an equivalent.
Thanks.