按钮如何同时使用多种过渡效果?

Cocos Creator 编辑器中按钮点击抬起等的过渡效果有颜色过渡,精灵过渡,缩放过渡,需要自己选择合适的切换。

请问应该怎么做才能同时进行多种过渡效果呢?

例如:在使用颜色过渡的同时,也使用缩放过渡。
按钮按下,按钮颜色与大小都进行变化。

找到官方button的代码,复制后再改一下,就可以了

this.node.on(“touchstart”, function(){
this.node.scale = 1.1;
this.color = cc.color.red;
})

this.node.on(“touchend”, function(){
this.node.scale = 1;
this.color = cc.color.green;
})

明白了,谢谢。