Hi,everyone
I wanna create a new action in js, here is my code
cc.Action.extend = cc.Class.extend;
var MyAction = cc.Action.extend({
update : function(){ cc.log("my action update"); }
});
...
spr.runAction(MyAction.create());
but i can’t override the update method, it will print the log “[Action update]. override me” continuously .
is it must be implemented in cpp for register to js?