A Simple Zoom Function?

0 favourites
  • 5 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • 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.

  • Im bumping this up to see if i can get a reply.

  • Hi,

    you can change the scale of the layer which gives the effect of zooming in or out. Is this what you mean?

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

    <img src="http://i42.tinypic.com/jkivi9.png" border="0">

    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)

    <img src="http://i42.tinypic.com/2vahz0o.png" border="0">

    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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)