How do I create a magnifying glass FX without Offset?

Get help using Construct 2

Post » Wed May 31, 2017 11:37 pm

Hi everyone,

I would like to create a magnifying glass that just scales up the part of the image that the mask covers.

I tried for a couple days, scratching my head, to find a way to create a magnifying glass.
I found an old post that suggested to use the Lens FX which was a good step but it created my problem that I don't know how to resolve.

I understand that the Lens FX magnification scales the image (for example 300%) but my problem is it creates an offset.

Is there a way to have a magnifying glass at a fix position with the zoom about what is show with the mouse?
Also mentioned by @dahu and @kinetic ?

The link below shows really well the expected result:
http://thecodeplayer.com/walkthrough/ma ... css3?s=rlt

Thank you everyone for your useful help.
B
26
S
10
G
3
Posts: 72
Reputation: 4,008

Post » Fri Jun 02, 2017 7:05 pm

Sorry guys, I'm really stuck and I really need help for it please... Is it possible to achieve this result in CS2?
B
26
S
10
G
3
Posts: 72
Reputation: 4,008

Post » Fri Jun 02, 2017 11:02 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Jun 03, 2017 3:23 am

Thank you so much @99Instances2Go
you just gave me another boost of energy.
Have a great day/night
B
26
S
10
G
3
Posts: 72
Reputation: 4,008

Post » Wed Aug 23, 2017 9:06 am

@99Instances2Go

Hi !
And ih i want a magnify glass fixed in the corner of the sprite ?
B
10
S
3
Posts: 81
Reputation: 828

Post » Wed Aug 23, 2017 9:24 am

sory, i found: just replace mouse.x and mouse.y by sprite3.x and sprite3.y
...
i have now to automaticaly replace sprite2 by the magnify of sprite, whe i change the sprite
B
10
S
3
Posts: 81
Reputation: 828


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests