How do I Rotate a Video

Get help using Construct 2

Post » Wed Apr 19, 2017 11:48 am

Hi,

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!
B
3
Posts: 3
Reputation: 181

Post » Wed Apr 19, 2017 1:09 pm

I don't believe you can rotate a video object the way you can a sprite.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Apr 19, 2017 1:50 pm

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...)
B
3
Posts: 3
Reputation: 181

Post » Thu Apr 20, 2017 1:45 am

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.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], leandrogenske, R0J0hound and 9 guests