Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17091

How to add control point for scaling or rotating image with touch event?

$
0
0

I want to implement a feature like other camera app into a desktop browser game, that can let use drag some stickers on top of the photo. When user tap the sticker, there are some control points appear on the corner of the sticker and let use scale and rotate.

How can implement add those control points into the sticker? Instantiate those control points as children of the sticker or just place into same level of sticker? How to drag the control point and the sticker will scale or rotate?

Thx

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 17091


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>