Hi all, I am using Cocos creator 3.5.0. I am trying to make flip animation for which I am changing the scale using tween. When I use tween in the callback function of touch event and try to change the scale of a node, touch event is disabled after tween execution. For example,
start() {
this.node.on(Node.EventType.TOUCH_START, this.func, this);
}
func() {
tween(this.node)
.to(2, {scale : new Vec3(this.node.scale.x + 1, 1, 0)})
.start();
}
According to this, node scale should increase by 1 for every touch, but after the first touch and tween is executed. The touch event is disabled (or may be destroyed). I don’t know if it’s the issue in the editor or am I missing something ?