Zooming in on a point

For questions about using Classic.

Post » Mon May 18, 2009 2:08 pm

Is there a way to zoom in on a certian area of the screen? Like if I have a 640x480 layout area and I want to zoom in on x320 and y240, how would I do that? The only thing I see is zoom ratios.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon May 18, 2009 2:47 pm

Always scroll to that point, then gradually increase the zoom level.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon May 18, 2009 11:01 pm

Doesn't seem to work. It just zooms towards the center rather than the object.
http://www.mediafire.com/download.php?mu2ny4jgwzi
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon May 18, 2009 11:19 pm

Here you go :)

http://dl.getdropbox.com/u/529356/catan ... riends.cap

[quote="Azu":ffia03nb]Doesn't seem to work. It just zooms towards the center rather than the object.[/quote:ffia03nb]

Set the layout properties to Unbounded Scrolling.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue May 19, 2009 12:36 am

Oh, math. Now I must study linear interpolation.
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Tue May 19, 2009 12:48 am

You don't have to use lerp. You could move the scroller however you want. You could also zoom in a different manner if you wish. This is just one way of doing it, to show that it can be done.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue May 19, 2009 1:01 am

It's just an interesting technique to know, for a person who is not really math oriented. Adding knowledge to one's repertoire to allow for more convenient problem solving, that sort of thing.
B
4
S
2
G
6
Posts: 161
Reputation: 2,597


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests