How do I Mirror Webcam

Get help using Construct 2

Post » Fri Dec 23, 2016 1:20 am

Hi All,

I am doing a project using Webcam, but the Webcam movement is mirrored. Is there any solution?

My temporary workaround:
1. Turn off webGL
2. Add following code in instanceProto.draw = function(ctx) after ctx.save();
ctx.translate(this.width,0);
ctx.scale(-1,1);
3. This will solve the mirror issue with minor lag

Please let me know if you have a solution or can this be a feature in UserMedia in future.

Regards,
Ik
B
7
S
2
G
1
Posts: 16
Reputation: 1,714

Post » Wed Dec 28, 2016 11:33 pm

Can't you just make the webcam width negative
B
7
S
1
Posts: 21
Reputation: 522


Return to How do I....?

Who is online

Users browsing this forum: farsen, lahbach, newt, TRMG and 23 guests