How to rotate a Video ? The video object hasn't the "angle" actions like a sprite. So I have to rotate the layer which contains the video.
It has something to do with : https://www.siggraph.org/education/mate ... 2drota.htm
and this topic : viewtopic.php?f=147&t=146141&p=935879&hilit=Rotate+center&sid=d9f70aa4f9c468d4e865cce8d59ce3fb#p935879
In my capx the video rotates around the centre of the layer, but the upper-left corner of the video should be the rotation-point.
But I don't see the solution....
Here's the capx : https://drive.google.com/file/d/0B8Uz4Z ... sp=sharing
one click on the video : play/pause the video
click and hold on the video: moves the video
click and hold on the rotate sign : the video should rotate on the left-upper corner of the video.
May be someone can help me ?
Thanks in advance!
Develop games in your browser. Powerful, performant & highly capable.
I don't believe you can rotate a video object the way you can a sprite.
So, I have to rotate the videolayer...
But I'm not smart enough how to rotate the the video AND keep the left-upper corner of the video at the same possition.
(first a rotation and then a translation, high-level math...)
You could try pinning it to a sprite (matching it;s position and rotation) and then rotating the sprite; though this may not work either.