A Simple Zoom Function?

Get help using Construct 2

Post » Fri Jun 14, 2013 9:54 am

Hi everyone,

I am wondering if it is possible to get someone to explain or show me a capX file of a simple zoom.What i mean by that is just One virtual button to change the zoom instead of multi-touch.I feel overwhelmed when i try and decode the example that comes with construct 2.If anyone can help me out with this thhat would be awesome thanks.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Fri Jun 14, 2013 6:47 pm

Im bumping this up to see if i can get a reply.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Fri Jun 14, 2013 11:17 pm

Hi,

you can change the scale of the layer which gives the effect of zooming in or out. Is this what you mean?
B
49
S
16
G
9
Posts: 1,098
Reputation: 11,222

Post » Fri Jun 14, 2013 11:26 pm

@spongehammer Yeah in a way,Im just not sure on how to make a zoom function at all.I checked out the zoom example for multi touch but it is way to complex for me right now.I just need to see or hear how to implement an easier way of doing it.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Sat Jun 15, 2013 7:59 am

Assuming you just want 2 buttons (text,sprite in this example), 1 for zooming out and 1 for zooming in instantly and everything in 1 layer.


Heres an example assuming that you want the zooming in and out gradually, have a HUD layer with two buttons (text,sprite in this example)


I'm not too sure of how the lerp works, I just edited the driving example in Construct 2 to zoom in and out. But here's more about lerps.
B
12
Posts: 4
Reputation: 453


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests