Rotate image by touch

How can I make a picture that rotates when you drag it?

Something like that


Or that
liFdr

You could create two image Sprites in a Canvas.
The first is your mouse sprite. It can be completely transparent.
The second one is your circle that you want to turn.
It should point to the other Sprite with this:

Or use animation utilities

image

@dora_paz Hmm ok but what will be the rotation degree? The x position - y?

You can get your touch x and y from here:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.