Graphics free hand drawing with a touch movement is producing a weird bug
Cocos
APRIL 11, 2023
This is the code. let graphics, graphicNode: cc.Node; this.node.on(cc.Node.EventType.TOUCH_START, cc.Node.EventType.TOUCH_END, (event: cc.Touch) => { let g = graphics; g.close() g.stroke(); g.fillColor = new cc.Color(255, 0, 0, 255); g.fill(); }); Can someone guide me? This is the code. This is the code.
Let's personalize your content